move nuget token scope to root of job

This commit is contained in:
Caelan Sayler
2022-05-14 17:03:16 +01:00
parent 466ee1eb8c
commit bfb41efec7

View File

@@ -127,6 +127,8 @@ jobs:
name: "Deploy" name: "Deploy"
needs: [build-windows, package-macos] needs: [build-windows, package-macos]
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
@@ -167,8 +169,6 @@ jobs:
path: '*.nupkg' path: '*.nupkg'
- name: Publish Dev NuGet Package - name: Publish Dev NuGet Package
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/cs/xplat' }} 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: | run: |
dotnet nuget push *.nupkg --skip-duplicate dotnet nuget push *.nupkg --skip-duplicate
# - name: Upload Artifacts # - name: Upload Artifacts