Skip to content

Commit

Permalink
Use -p:PublishSingleFile=true
Browse files Browse the repository at this point in the history
  • Loading branch information
tgharold authored Oct 13, 2020
1 parent 1dd7a56 commit e11748d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/create-release-asset-on-git-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
run: >
dotnet publish
--self-contained false
-p:PublishSingleFile=true
-r linux-x64
--configuration ${{ env.CONFIG }}
/p:Version="${{ env.RELEASE_VERSION }}" /p:InformationalVersion="${{ env.RELEASE_VERSION }}"
Expand All @@ -71,16 +72,14 @@ jobs:
zip --junk-paths ./${{ env.PROJECT }}-${{ env.RELEASE_TAG }}-dotnet-linux-x64.zip
./LICENSE ./README.md
./dotnet/src/${{ env.PROJECT }}/bin/${{ env.CONFIG }}/${{ env.TARGET }}/linux-x64/publish/${{ env.PROJECT }}
./dotnet/src/${{ env.PROJECT }}/bin/${{ env.CONFIG }}/${{ env.TARGET }}/linux-x64/publish/${{ env.PROJECT }}.dll
./dotnet/src/${{ env.PROJECT }}/bin/${{ env.CONFIG }}/${{ env.TARGET }}/linux-x64/publish/${{ env.PROJECT }}.deps.json
./dotnet/src/${{ env.PROJECT }}/bin/${{ env.CONFIG }}/${{ env.TARGET }}/linux-x64/publish/${{ env.PROJECT }}.runtimeconfig.json
# ----- osx-x64
- name: dotnet publish osx-x64
working-directory: ./dotnet/src/${{ env.PROJECT }}
run: >
dotnet publish
--self-contained false
-p:PublishSingleFile=true
-r osx-x64
--configuration ${{ env.CONFIG }}
/p:Version="${{ env.RELEASE_VERSION }}" /p:InformationalVersion="${{ env.RELEASE_VERSION }}"
Expand All @@ -92,16 +91,14 @@ jobs:
zip --junk-paths ./${{ env.PROJECT }}-${{ env.RELEASE_TAG }}-dotnet-osx-x64.zip
./LICENSE ./README.md
./dotnet/src/${{ env.PROJECT }}/bin/${{ env.CONFIG }}/${{ env.TARGET }}/osx-x64/publish/${{ env.PROJECT }}
./dotnet/src/${{ env.PROJECT }}/bin/${{ env.CONFIG }}/${{ env.TARGET }}/osx-x64/publish/${{ env.PROJECT }}.dll
./dotnet/src/${{ env.PROJECT }}/bin/${{ env.CONFIG }}/${{ env.TARGET }}/osx-x64/publish/${{ env.PROJECT }}.deps.json
./dotnet/src/${{ env.PROJECT }}/bin/${{ env.CONFIG }}/${{ env.TARGET }}/osx-x64/publish/${{ env.PROJECT }}.runtimeconfig.json
# ----- win-x64
- name: dotnet publish win-x64
working-directory: ./dotnet/src/${{ env.PROJECT }}
run: >
dotnet publish
--self-contained false
-p:PublishSingleFile=true
-r win-x64
--configuration ${{ env.CONFIG }}
/p:Version="${{ env.RELEASE_VERSION }}" /p:InformationalVersion="${{ env.RELEASE_VERSION }}"
Expand All @@ -113,9 +110,6 @@ jobs:
zip --junk-paths ./${{ env.PROJECT }}-${{ env.RELEASE_TAG }}-dotnet-win-x64.zip
./LICENSE ./README.md
./dotnet/src/${{ env.PROJECT }}/bin/${{ env.CONFIG }}/${{ env.TARGET }}/win-x64/publish/${{ env.PROJECT }}.exe
./dotnet/src/${{ env.PROJECT }}/bin/${{ env.CONFIG }}/${{ env.TARGET }}/win-x64/publish/${{ env.PROJECT }}.dll
./dotnet/src/${{ env.PROJECT }}/bin/${{ env.CONFIG }}/${{ env.TARGET }}/win-x64/publish/${{ env.PROJECT }}.deps.json
./dotnet/src/${{ env.PROJECT }}/bin/${{ env.CONFIG }}/${{ env.TARGET }}/win-x64/publish/${{ env.PROJECT }}.runtimeconfig.json
# ------------------------

Expand Down

0 comments on commit e11748d

Please sign in to comment.