We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74dcf64 commit 8bf794dCopy full SHA for 8bf794d
1 file changed
.github/workflows/CI.yaml
@@ -70,6 +70,8 @@ jobs:
70
run: npm test
71
72
build-and-publish-nuget:
73
+ permissions:
74
+ id-token: write
75
needs: [ XUnit, PHPUnit, Jest ]
76
runs-on: ubuntu-latest
77
timeout-minutes: 15
@@ -98,8 +100,12 @@ jobs:
98
100
99
101
- name: Pack
102
run: dotnet pack include/c#/10 --configuration Release --no-build --output .
103
+
104
+ - name: Login
105
+ uses: NuGet/login@v1
106
+ id: login
107
+ with:
108
+ user: ${{ secrets.NUGET_USER_NAME }}
109
110
- name: Push
- run: dotnet nuget push "*.${VERSION}.nupkg" -k ${NUGET_API_KEY} -s https://api.nuget.org/v3/index.json
- env:
- NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
111
+ run: dotnet nuget push "*.${VERSION}.nupkg" -k ${{ steps.login.outputs.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
0 commit comments