File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 2121 dotnet-version : 6.0.x
2222 - name : Restore dependencies
2323 run : dotnet restore
24+
25+ - name : Fiddeling with secrets
26+ env :
27+ NUGET_TOKEN_EXISTS : ${{ secrets.NUGET_TOKEN }}
28+ if : env.NUGET_TOKEN_EXISTS != ''
29+ run : echo "NUGET_TOKEN_EXISTS exists - implementation of secret checking working on all runners"
2430 - name : Build
2531 run : dotnet build --configuration Release --no-restore
2632 - name : Test
4147 - name : Build
4248 run : dotnet build --configuration Release --no-restore
4349 - name : NugetPush
50+ env :
51+ NUGET_TOKEN_EXISTS : ${{ secrets.NUGET_TOKEN }}
52+ if : env.NUGET_TOKEN_EXISTS != ''
4453 run : |
4554 ls ./GithubActionsHelloWorld/bin/Release
46- dotnet nuget push ./GithubActionsHelloWorld/bin/Release/*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TOKEN}} --source https://apiint.nugettest .org/v3/index.json
55+ dotnet nuget push ./GithubActionsHelloWorld/bin/Release/*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TOKEN}} --source https://api.nuget .org/v3/index.json
4756 - uses : " marvinpinto/action-automatic-releases@latest"
4857 with :
4958 repo_token : " ${{ secrets.GITHUB_TOKEN }}"
6978 - name : Build
7079 run : dotnet build --configuration Release --no-restore
7180 - name : NugetPush
81+ env :
82+ NUGET_TOKEN_EXISTS : ${{ secrets.NUGET_TEST_TOKEN }}
83+ if : env.NUGET_TOKEN_EXISTS != ''
7284 run : |
7385 ls ./GithubActionsHelloWorld/bin/Release
74- # dotnet nuget push ./GithubActionsHelloWorld/bin/Release/*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TOKEN }} --source https://api.nuget .org/v3/index.json
86+ dotnet nuget push ./GithubActionsHelloWorld/bin/Release/*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TEST_TOKEN }} --source https://apiint.nugettest .org/v3/index.json
7587 - uses : " marvinpinto/action-automatic-releases@latest"
7688 with :
7789 repo_token : " ${{ secrets.GITHUB_TOKEN }}"
You can’t perform that action at this time.
0 commit comments