Skip to content

Commit

Permalink
Merge pull request #10 from Cysharp/feature/secret
Browse files Browse the repository at this point in the history
feat: change load secret from op
  • Loading branch information
mayuki authored Apr 17, 2024
2 parents f8b6f04 + e32b3f3 commit 858a23a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build-canary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Load secrets
id: op-load-secret
uses: 1password/load-secrets-action@v2
with:
export-env: false
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN_PUBLIC }}
NUGET_KEY: "op://GitHubActionsPublic/NUGET_KEY/username"

- uses: actions/checkout@v3
- uses: Cysharp/Actions/.github/actions/setup-dotnet@main
- name: "Set VersionSuffix for Preview"
Expand All @@ -22,4 +31,4 @@ jobs:
name: nuget
path: publish
- name: "Push to NuGet.org"
run: dotnet nuget push "$GITHUB_WORKSPACE/publish/*.nupkg" --skip-duplicate -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json
run: dotnet nuget push "$GITHUB_WORKSPACE/publish/*.nupkg" --skip-duplicate -k ${{ steps.op-load-secret.outputs.NUGET_KEY }} -s https://api.nuget.org/v3/index.json

0 comments on commit 858a23a

Please sign in to comment.