Skip to content

Commit

Permalink
chore: Publish NtunlClient and NtunlHost as ZIP files
Browse files Browse the repository at this point in the history
Publishes NtunlClient and NtunlHost as ZIP files in the release workflow.

```
  • Loading branch information
Timothy Dodd committed Aug 21, 2024
1 parent 6b80cec commit e22ddb6
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,21 @@ jobs:
with:
dotnet-version: "8.x"

- name: Restore dependencies for NtunlClient
run: dotnet restore src/NtunlClient/NtunlClient.csproj
- name: Publish NtunlClient
run: dotnet publish src/NtunlClient/NtunlClient.csproj --configuration Release --output publish/NtunlClient

- name: Build NtunlClient
run: dotnet build src/NtunlClient/NtunlClient.csproj --configuration Release --no-restore
- name: Publish NtunlHost
run: dotnet publish src/NtunlHost/NtunlHost.csproj --configuration Release --output publish/NtunlHost

- name: Restore dependencies for NtunlHost
run: dotnet restore src/NtunlHost/NtunlHost.csproj
- name: Generate NtunlClient ZIP
run: |
cd publish/NtunlClient
zip -r ../../NtunlClient.zip .
- name: Build NtunlHost
run: dotnet build src/NtunlHost/NtunlHost.csproj --configuration Release --no-restore
- name: Generate NtunlHost ZIP
run: |
cd publish/NtunlHost
zip -r ../../NtunlHost.zip .
- name: Create Release
id: create_release
Expand All @@ -47,14 +51,14 @@ jobs:
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: src/NtunlClient/bin/Release/net8.0/your-client-asset.zip
asset_path: NtunlClient.zip
asset_name: NtunlClient.zip
asset_content_type: application/zip

- name: Upload NtunlHost Release Asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: src/NtunlHost/bin/Release/net8.0/your-host-asset.zip
asset_path: NtunlHost.zip
asset_name: NtunlHost.zip
asset_content_type: application/zip

0 comments on commit e22ddb6

Please sign in to comment.