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 19
19
Release_upload_url : ${{ steps.create_release.outputs.upload_url}}
20
20
21
21
steps :
22
+ - uses : GitHubSecurityLab/actions-permissions/monitor@v1
23
+ with :
24
+ config : ${{ vars.PERMISSIONS_CONFIG }}
25
+
22
26
- name : Checkout
23
27
uses : actions/checkout@v4
24
28
with :
39
43
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
44
with :
41
45
version : ${{ env.NBGV_SemVer2 }}
42
- prerelease : true
43
46
44
47
build :
45
48
needs : [update_release_draft]
Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
publish :
10
- runs-on : windows-latest
11
- permissions : write-all
10
+ runs-on : ubuntu-latest
12
11
13
12
steps :
14
13
- uses : GitHubSecurityLab/actions-permissions/monitor@v1
15
14
with :
16
15
config : ${{ vars.PERMISSIONS_CONFIG }}
17
16
17
+ - name : Setup .NET
18
+ uses : actions/setup-dotnet@v4
19
+ with :
20
+ dotnet-version : |
21
+ 8.0.x
22
+
18
23
- name : Download Assets
19
24
uses : i3h/download-release-asset@v1.3.3
20
25
with :
24
29
file : ' /.*\.nupkg/'
25
30
token : ${{ secrets.GITHUB_TOKEN }}
26
31
27
- - run : dir -recurse
32
+ - run : ls -alR
33
+ name : List files
28
34
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 1
1
{
2
2
"$schema" : " https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json" ,
3
- "version" : " 4 .0" ,
3
+ "version" : " 3 .0" ,
4
4
"publicReleaseRefSpec" : [
5
5
" ^refs/heads/master$" ,
6
6
" ^refs/heads/v\\ d+(?:\\ .\\ d+)?$"
You can’t perform that action at this time.
0 commit comments