diff --git a/.github/workflows/nuget_publish.yml b/.github/workflows/nuget_publish.yml index 2d700c4..2bdc0d9 100644 --- a/.github/workflows/nuget_publish.yml +++ b/.github/workflows/nuget_publish.yml @@ -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 }}