Skip to content

Commit

Permalink
- Try self-contained release for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaBear84 committed Nov 16, 2020
1 parent df6e625 commit 0972b75
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ jobs:
files: ./OpenDirectoryDownloader-win-x64
dest: OpenDirectoryDownloader-win-x64.zip

- name: Publish with dotnet win-x64 self-contained
run: dotnet publish OpenDirectoryDownloader --configuration Release --framework net5.0 --runtime win-x64 --self-contained=true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true --output ./OpenDirectoryDownloader-win-x64-self-contained

- name: Zipping win-x64 self-contained
uses: papeloto/action-zip@v1
with:
files: ./OpenDirectoryDownloader-win-x64-self-contained
dest: OpenDirectoryDownloader-win-x64-self-contained.zip

- name: Publish with dotnet linux-x64
run: dotnet publish OpenDirectoryDownloader --configuration Release --framework net5.0 --runtime linux-x64 --no-self-contained -p:PublishSingleFile=true --output ./OpenDirectoryDownloader-linux-x64

Expand Down Expand Up @@ -80,6 +89,16 @@ jobs:
asset_name: OpenDirectoryDownloader-win-x64.zip
asset_content_type: application/zip

- name: Upload Release Asset win-x64 self-contained
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./OpenDirectoryDownloader-win-x64-self-contained.zip
asset_name: OpenDirectoryDownloader-win-x64-self-contained.zip
asset_content_type: application/zip

- name: Upload Release Asset linux-x64
uses: actions/[email protected]
env:
Expand Down

0 comments on commit 0972b75

Please sign in to comment.