Skip to content

Commit

Permalink
Update dotnet-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Gs-itisitcat authored Mar 10, 2024
1 parent 5a99ff0 commit 3f2b208
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/dotnet-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,26 @@ jobs:
echo "::set-output name=VERSION::$VERSION"
shell: bash

- name: Publish Runtime Dependent
- name: Publish Runtime Dependent Any
run: |
dotnet publish git-local-repository-listing/git-local-repository-listing.csproj --configuration Release --output publish/runtime-dependent --self-contained false
zip -r -j lepol-runtime-dependent-${{ steps.get_version.outputs.VERSION }}.zip publish/runtime-dependent src/lepos.bash
dotnet publish git-local-repository-listing/git-local-repository-listing.csproj --configuration Release --output publish/runtime-dependent --self-contained false -p:PublishSingleFile=false
zip -r -j lepol-any-runtime-dependent-${{ steps.get_version.outputs.VERSION }}.zip publish/runtime-dependent src/lepos.bash
- name: Publish Windows Runtime Dependent
run: |
dotnet publish git-local-repository-listing/git-local-repository-listing.csproj --configuration Release --output publish/windows-self-contained --runtime win-x64 --self-contained false
zip -r -j lepol-windows-runtime-dependent-${{ steps.get_version.outputs.VERSION }}.zip publish/windows-self-contained src/lepos.bash
- name: Publish Windows Self-Contained
run: |
dotnet publish git-local-repository-listing/git-local-repository-listing.csproj --configuration Release --output publish/windows-self-contained --runtime win-x64 --self-contained true
zip -r -j lepol-windows-self-contained-${{ steps.get_version.outputs.VERSION }}.zip publish/windows-self-contained src/lepos.bash
- name: Publish Linux Runtime Dependent
run: |
dotnet publish git-local-repository-listing/git-local-repository-listing.csproj --configuration Release --output publish/linux-self-contained --runtime linux-x64 --self-contained false
zip -r -j lepol-linux-runtime-dependent-${{ steps.get_version.outputs.VERSION }}.zip publish/linux-self-contained src/lepos.bash
- name: Publish Linux Self-Contained
run: |
dotnet publish git-local-repository-listing/git-local-repository-listing.csproj --configuration Release --output publish/linux-self-contained --runtime linux-x64 --self-contained true
Expand All @@ -53,7 +63,9 @@ jobs:
with:
files: |
lepol-runtime-dependent-${{ steps.get_version.outputs.VERSION }}.zip
lepol-windows-runtime-dependent-${{ steps.get_version.outputs.VERSION }}.zip
lepol-windows-self-contained-${{ steps.get_version.outputs.VERSION }}.zip
lepol-linux-runtime-dependent-${{ steps.get_version.outputs.VERSION }}.zip
lepol-linux-self-contained-${{ steps.get_version.outputs.VERSION }}.zip
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: v${{ steps.get_version.outputs.VERSION }}
Expand Down

0 comments on commit 3f2b208

Please sign in to comment.