Skip to content

Commit

Permalink
Update build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mayuki authored Jun 23, 2024
1 parent 3ff50b0 commit febaa18
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@ jobs:
Build:
runs-on: ubuntu-latest
steps:
# Load secrets from 1Password
- uses: 1password/load-secrets-action@v2
id: op-load-secret
with:
export-env: false
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN_PUBLIC }}
NUGET_AUTH_TOKEN: "op://GitHub Actions - Public/NuGet - Azure Artifacts/credential"

- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
Expand Down Expand Up @@ -62,6 +53,16 @@ jobs:
name: Packages
path: artifacts

# Load secrets from 1Password
- uses: 1password/load-secrets-action@v2
if: ${{ github.event_name != 'pull_request' }}
id: op-load-secret
with:
export-env: false
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN_PUBLIC }}
NUGET_AUTH_TOKEN: "op://GitHub Actions - Public/NuGet - Azure Artifacts/credential"

- name: Publish NuGet packages to Azure Artifacts
if: ${{ github.event_name != 'pull_request' }}
run: |
Expand Down

0 comments on commit febaa18

Please sign in to comment.