Skip to content

Commit 3a36910

Browse files
authored
create gh release (#139)
1 parent cfe5151 commit 3a36910

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,23 @@ jobs:
2323
with:
2424
name: nupkgs
2525
- name: Push to pkg.github.com
26-
run: dotnet nuget push "**/*.nupkg" -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -k ${{ secrets.GH_FULL_PAT }} --skip-duplicate
26+
run: dotnet nuget push "nupkgs/*.nupkg" -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -k ${{ secrets.GH_FULL_PAT }} --skip-duplicate
2727

2828
nuget:
2929
name: Deploy to NuGet
3030
needs: [build]
3131
if: startsWith(github.ref, 'refs/tags/v')
3232
runs-on: ubuntu-24.04
3333
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v4
3436
- name: Download artifacts
3537
uses: actions/download-artifact@v4
3638
with:
3739
name: nupkgs
40+
- name: Create GitHub Release
41+
run: gh release create ${{ github.ref_name }} nupkgs/*nupkg
42+
env:
43+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3844
- name: Push to nuget.org
39-
run: dotnet nuget push "**/*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_DEPLOY_KEY }}
45+
run: dotnet nuget push "nupkgs/*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_DEPLOY_KEY }}

0 commit comments

Comments
 (0)