Skip to content

Commit

Permalink
Zip artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
DrEsteban committed May 21, 2024
1 parent 0f197d0 commit a383562
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/nuget_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,15 @@ jobs:
dotnet nuget push --skip-duplicate --api-key ${{ secrets.GITHUBTOKEN }} ./**/Release/*.nupkg --source github
- name: Publish NuGet
run: dotnet nuget push --skip-duplicate --api-key ${{ secrets.NUGETTOKEN }} ./**/Release/*.nupkg --source https://api.nuget.org/v3/index.json
- name: Zip artifacts
run: |
mkdir -p ./zip
zip -r ./zip/DotNetDefer.zip ./DotNetDefer/bin/Release
zip -r ./zip/DotNetDefer.Legacy.zip ./DotNetDefer.Legacy/bin/Release
- name: Create GitHub Release
uses: ncipollo/release-action@v1.14.0
with:
artifacts: ./DotNetDefer/bin/Release/**,./DotNetDefer.Legacy/bin/Release/**
artifacts: ./DotNetDefer/bin/Release/*.nupkg,./DotNetDefer.Legacy/bin/Release/*.nupkg,./zip/*.zip
token: ${{ secrets.GITHUBTOKEN }}
tag: ${{ steps.set_version.outputs.version_tag }}
commit: ${{ github.sha }}
Expand Down

0 comments on commit a383562

Please sign in to comment.