From 08f8d353e7553820b35bb17c5d854474e6f7289d Mon Sep 17 00:00:00 2001 From: "phnx47[bot]" <78849906+phnx47-bot@users.noreply.github.com> Date: Sun, 15 Dec 2024 08:14:48 +0000 Subject: [PATCH] create gh release --- .github/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 256bb5c..384e43b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: with: name: nupkgs - name: Push to pkg.github.com - run: dotnet nuget push "**/*.nupkg" -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -k ${{ secrets.GH_FULL_PAT }} --skip-duplicate + run: dotnet nuget push "nupkgs/*.nupkg" -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -k ${{ secrets.GH_FULL_PAT }} --skip-duplicate nuget: name: Deploy to NuGet @@ -31,9 +31,15 @@ jobs: if: startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-24.04 steps: + - name: Checkout + uses: actions/checkout@v4 - name: Download artifacts uses: actions/download-artifact@v4 with: name: nupkgs + - name: Create GitHub Release + run: gh release create ${{ github.ref_name }} nupkgs/*nupkg + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Push to nuget.org - run: dotnet nuget push "**/*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_DEPLOY_KEY }} + run: dotnet nuget push "nupkgs/*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_DEPLOY_KEY }}