-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Try self-contained release for windows
- Loading branch information
1 parent
df6e625
commit 0972b75
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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: | ||
|