Skip to content

Commit de4ded8

Browse files
committed
Update dotnet.yml
1 parent 7137477 commit de4ded8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/dotnet.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ jobs:
4242
run: dotnet build --configuration Release --no-restore
4343
- name: NugetPush
4444
env:
45-
NUGET_TOKEN_EXISTS: ${{ secrets.NUGET_TOKEN }}
45+
NUGET_TOKEN_EXISTS: ${{ secrets.NUGET_TEST_TOKEN }}
4646
if: env.NUGET_TOKEN_EXISTS != ''
4747
run: |
4848
ls ./GithubActionsHelloWorld/bin/Release
49-
dotnet nuget push ./GithubActionsHelloWorld/bin/Release/*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TOKEN}} --source https://apiint.nugettest.org/v3/index.json
49+
dotnet nuget push ./GithubActionsHelloWorld/bin/Release/*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TEST_TOKEN}} --source https://apiint.nugettest.org/v3/index.json
5050
- name: Github release
5151
env:
5252
GITHUB_TOKEN_EXISTS: ${{ secrets.GITHUB_TOKEN }}
@@ -62,6 +62,7 @@ jobs:
6262
./GithubActionsHelloWorld/bin/Release/*.snupkg
6363
6464
deployTest:
65+
if: github.ref != 'refs/heads/main'
6566
runs-on: ubuntu-latest
6667
needs: build
6768
steps:

0 commit comments

Comments
 (0)