We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8340bf2 commit 3c996b7Copy full SHA for 3c996b7
1 file changed
.github/workflows/ci.yml
@@ -31,6 +31,8 @@ jobs:
31
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
32
runs-on: ubuntu-latest
33
needs: build-test
34
+ env:
35
+ NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
36
steps:
37
- name: Checkout
38
uses: actions/checkout@v4
@@ -49,5 +51,5 @@ jobs:
49
51
dotnet pack ./Release.sln -c Release --no-restore -o artifacts
50
52
53
- name: Publish to NuGet
- if: ${{ secrets.NUGET_API_KEY != '' }}
- run: dotnet nuget push "artifacts/*.nupkg" --source https://api.nuget.org/v3/index.json --api-key "${{ secrets.NUGET_API_KEY }}" --skip-duplicate
54
+ if: env.NUGET_API_KEY != ''
55
+ run: dotnet nuget push "artifacts/*.nupkg" --source https://api.nuget.org/v3/index.json --api-key "$NUGET_API_KEY" --skip-duplicate
0 commit comments