Skip to content

Commit a2d0e14

Browse files
authored
Update release.yml
1 parent f957f10 commit a2d0e14

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,16 @@ jobs:
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'
@@ -34,4 +43,4 @@ jobs:
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

0 commit comments

Comments
 (0)