Skip to content

Commit

Permalink
specify env at the top level
Browse files Browse the repository at this point in the history
  • Loading branch information
pacjman committed Jul 13, 2024
1 parent d6cee96 commit dfc0cc4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
pull_request:
branches:
- main

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -20,5 +24,3 @@ jobs:
run: dotnet pack --configuration Release --no-build src/HealthCheck.sln -o dist
- name: Push
run: dotnet nuget push dist/*.nupkg --source https://nuget.pkg.github.com/cerberix/index.json --api-key ${GITHUB_TOKEN} --skip-duplicate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit dfc0cc4

Please sign in to comment.