File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 2828
2929 - name : Build
3030 run : |
31+ # GH Actions puts us in detached head, but for nbgv, we need to be on the branch
3132 if echo "${{github.ref}}" | grep -q "^refs/heads/"; then
3233 git checkout "$(echo ${{github.ref}} | sed -E 's|^refs/heads/||')";
3334 fi
3940 name : nuget
4041 path : bin/nuget
4142
43+ prerelease :
44+ runs-on : ubuntu-latest
45+ needs : build
46+ if : ${{ github.ref == 'refs/heads/master' }}
47+ steps :
48+ - name : Setup dotnet
49+ uses : actions/setup-dotnet@v1
50+ with :
51+ dotnet-version : ' 5.0.100'
52+
53+ - name : Download nupkg
54+ uses : actions/download-artifact@v1
55+ with :
56+ name : nuget
57+
58+ - name : Push to GitHub feed
59+ run : dotnet nuget push nuget/*.nupkg
60+ --api-key "${{github.repository_owner}}:${{secrets.GITHUB_TOKEN}}"
61+ --source "https://nuget.pkg.github.com/${{github.repository_owner}}/"
62+ --skip-duplicate
63+
4264 release :
4365 runs-on : ubuntu-latest
4466 needs : build
Original file line number Diff line number Diff line change 2424 file_glob : ' true'
2525 file : ./*.nupkg
2626
27+ - name : Push to GitHub feed
28+ run : dotnet nuget push *.nupkg
29+ --api-key "${{github.repository_owner}}:${{secrets.GITHUB_TOKEN}}"
30+ --source "https://nuget.pkg.github.com/${{github.repository_owner}}/"
31+ --skip-duplicate
32+
2733 - name : Push to NuGet
2834 run : dotnet nuget push *.nupkg
2935 --api-key ${{secrets.NUGET_API_KEY}}
You can’t perform that action at this time.
0 commit comments