File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,17 +3,17 @@ name: Release Nuget Package
33on :
44 push :
55 tags :
6- - ' v* '
6+ - " v* "
77 workflow_dispatch :
88
99jobs :
1010 push-nuget-package :
1111 runs-on : ubuntu-latest
12-
12+
1313 steps :
1414 - name : Checkout
1515 uses : actions/checkout@v2
16-
16+
1717 - name : Verify commit exists in origin/master
1818 run : |
1919 git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
@@ -25,18 +25,18 @@ jobs:
2525 run : dotnet build --configuration Release /p:Version=${VERSION}
2626
2727 - name : Test
28- run : dotnet test --configuration Release --no-build /p:Version=${VERSION}
28+ run : dotnet test --configuration Release --no-build /p:Version=${VERSION}
2929
3030 - name : Pack
3131 run : dotnet pack --configuration Release --no-build --output . /p:Version=${VERSION}
3232
33- # - name: Push
34- # run: dotnet nuget push torque.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_TOKEN}
35- # env:
36- # NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
33+ - name : Push
34+ run : dotnet nuget push torque.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_TOKEN}
35+ env :
36+ NUGET_TOKEN : ${{ secrets.NUGET_TOKEN }}
3737
38- # Push to GitHub Packages
38+ # Push to GitHub Packages
3939 - name : Push
4040 run : dotnet nuget push torque.${VERSION}.nupkg --source https://nuget.pkg.github.com/QualiNext/index.json --api-key ${GITHUB_TOKEN}
4141 env :
42- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments