From bfb41efec7a41361e30237d4da9f78cfe75a0e0c Mon Sep 17 00:00:00 2001 From: Caelan Sayler Date: Sat, 14 May 2022 17:03:16 +0100 Subject: [PATCH] move nuget token scope to root of job --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cca97785..cce26267 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -127,6 +127,8 @@ jobs: name: "Deploy" needs: [build-windows, package-macos] runs-on: ubuntu-latest + env: + NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} steps: - uses: actions/checkout@v2 with: @@ -167,8 +169,6 @@ jobs: path: '*.nupkg' - name: Publish Dev NuGet Package if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/cs/xplat' }} - env: - NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} run: | dotnet nuget push *.nupkg --skip-duplicate # - name: Upload Artifacts