File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,19 @@ jobs:
44
44
path : " artifacts/**/*nupkg"
45
45
if-no-files-found : warn
46
46
retention-days : 1
47
+ - name : Determine whether we should push to experimental feed.
48
+ id : check_token
49
+ run : |
50
+ if [ -z "${{ secrets.EXP_NUGET_PASSWORD }}" ]; then
51
+ echo "push=false" >> $GITHUB_OUTPUT
52
+ else
53
+ echo "push=true" >> $GITHUB_OUTPUT
54
+ fi
47
55
- name : Push to Experimental Feed
48
- if : ${{ secrets.EXP_NUGET_PASSWORD != ' ' }}
56
+ if : ${{ steps.check_token.outputs.push == 'true ' }}
49
57
run : ./build.sh PushToNuGet --skip Clean Compile Pack --nuget-feed https://dotnet.github.io/Silk.NET/nuget/experimental/index.json --nuget-username ${{ secrets.EXP_NUGET_USERNAME }} --nuget-password ${{ secrets.EXP_NUGET_PASSWORD }} --nuget-api-key ${{ secrets.EXP_NUGET_PASSWORD }}
50
58
- name : Push to GitHub Packages
51
- if : ${{ secrets.EXP_NUGET_PASSWORD != ' ' }} # ik it's irrelevant but it tells if we likely have perms
59
+ if : ${{ steps.check_token.outputs.push == 'true ' }}
52
60
run : ./build.sh PushToNuGet --skip Clean Compile Pack --nuget-feed https://nuget.pkg.github.com/dotnet/index.json --nuget-api-key ${{ secrets.GITHUB_TOKEN }}
53
61
Test :
54
62
strategy :
You can’t perform that action at this time.
0 commit comments