File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1616
1717 steps :
1818 - uses : actions/checkout@v1
19-
19+
20+ # Load secrets from 1Password
21+ - uses : 1password/load-secrets-action@v2
22+ id : op-load-secret
23+ with :
24+ export-env : false
25+ env :
26+ OP_SERVICE_ACCOUNT_TOKEN : ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN_PUBLIC }}
27+ NUGET_AUTH_TOKEN : " op://GitHub Actions - Public/NuGet - Mayuki-Default/credential"
28+
2029 - uses : actions/setup-dotnet@v1
2130 with :
2231 dotnet-version : ' 8.0.x'
3443
3544 - name : " Push to NuGet.org"
3645 run : |
37- dotnet nuget push "$env:GITHUB_WORKSPACE\artifacts\*.nupkg" --skip-duplicate -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json
46+ dotnet nuget push "$env:GITHUB_WORKSPACE\artifacts\*.nupkg" --skip-duplicate -k ${{ steps.op-load-secret.outputs.NUGET_AUTH_TOKEN }} -s https://api.nuget.org/v3/index.json
You can’t perform that action at this time.
0 commit comments