File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ name: .NET build and test
22env :
33 CURRENT_VERSION : 1.0.${{ github.run_number }}
44 LAST_COMMIT_MESSAGE : ${{ github.event.head_commit.message }}
5- NUGET_TOKEN_EXISTS : ${{ secrets.NUGET_TOKEN }}
6- NUGET_TOKEN_TEST_EXISTS : ${{ secrets.NUGET_TEST_TOKEN }}
75
86on :
97 push :
3331 run : dotnet test --no-build --verbosity normal --configuration Release
3432
3533 deployRelease :
36- if : github.ref == 'refs/heads/main' && ${{ secrets.NUGET_TOKEN != '' }}
34+ env :
35+ NUGET_TOKEN_EXISTS : ${{ secrets.NUGET_TOKEN }}
36+ if : github.ref == 'refs/heads/main' && ${{ env.NUGET_TOKEN_EXISTS != '' }}
3737 runs-on : ubuntu-latest
3838 needs : build
3939 steps :
6161 ./GithubActionsHelloWorld/bin/Release/*.snupkg
6262
6363 deployTest :
64- if : github.ref != 'refs/heads/main' && ${{ secrets.NUGET_TEST_TOKEN != '' }}
64+ env :
65+ NUGET_TOKEN_TEST_EXISTS : ${{ secrets.NUGET_TEST_TOKEN }}
66+ if : github.ref != 'refs/heads/main' && ${{ env.NUGET_TOKEN_TEST_EXISTS != '' }}
6567 runs-on : ubuntu-latest
6668 needs : build
6769 steps :
You can’t perform that action at this time.
0 commit comments