File tree Expand file tree Collapse file tree 3 files changed +18
-8
lines changed
Expand file tree Collapse file tree 3 files changed +18
-8
lines changed Original file line number Diff line number Diff line change 1919 Release_upload_url : ${{ steps.create_release.outputs.upload_url}}
2020
2121 steps :
22+ - uses : GitHubSecurityLab/actions-permissions/monitor@v1
23+ with :
24+ config : ${{ vars.PERMISSIONS_CONFIG }}
25+
2226 - name : Checkout
2327 uses : actions/checkout@v4
2428 with :
3943 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4044 with :
4145 version : ${{ env.NBGV_SemVer2 }}
42- prerelease : true
4346
4447 build :
4548 needs : [update_release_draft]
Original file line number Diff line number Diff line change 77
88jobs :
99 publish :
10- runs-on : windows-latest
11- permissions : write-all
10+ runs-on : ubuntu-latest
1211
1312 steps :
1413 - uses : GitHubSecurityLab/actions-permissions/monitor@v1
1514 with :
1615 config : ${{ vars.PERMISSIONS_CONFIG }}
1716
17+ - name : Setup .NET
18+ uses : actions/setup-dotnet@v4
19+ with :
20+ dotnet-version : |
21+ 8.0.x
22+
1823 - name : Download Assets
1924 uses : i3h/download-release-asset@v1.3.3
2025 with :
2429 file : ' /.*\.nupkg/'
2530 token : ${{ secrets.GITHUB_TOKEN }}
2631
27- - run : dir -recurse
32+ - run : ls -alR
33+ name : List files
2834
29- - name : push
30- run : nuget push *.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.NUGET_API_KEY }}
31-
35+ - name : Publish the package to nuget.org
36+ run : dotnet nuget push "*.nupkg" --source https://api.nuget.org/v3/index.json -k $NUGET_AUTH_TOKEN --skip-duplicate
37+ env :
38+ NUGET_AUTH_TOKEN : ${{ secrets.NUGET_API_KEY }}
Original file line number Diff line number Diff line change 11{
22 "$schema" : " https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json" ,
3- "version" : " 4 .0" ,
3+ "version" : " 3 .0" ,
44 "publicReleaseRefSpec" : [
55 " ^refs/heads/master$" ,
66 " ^refs/heads/v\\ d+(?:\\ .\\ d+)?$"
You can’t perform that action at this time.
0 commit comments