File tree Expand file tree Collapse file tree 1 file changed +20
-22
lines changed Expand file tree Collapse file tree 1 file changed +20
-22
lines changed Original file line number Diff line number Diff line change 66 tag :
77 description : " tag: git tag you want create. (sample 1.0.0)"
88 required : true
9+ dry-run :
10+ description : " dry-run: true will never create relase/nuget."
11+ required : true
12+ default : false
13+ type : boolean
914
10- env :
11- GIT_TAG : ${{ github.event.inputs.tag }}
12-
1315jobs :
14- dotnet- build-and-push :
16+ build-dotnet :
1517 runs-on : ubuntu-latest
1618 timeout-minutes : 10
1719 steps :
18- - run : echo ${{ needs.update-packagejson.outputs.sha }}
1920 - uses : actions/checkout@v3
20- with :
21- ref : ${{ needs.update-packagejson.outputs.sha }}
2221 - uses : Cysharp/Actions/.github/actions/setup-dotnet@main
2322 with :
2423 dotnet-version : |
@@ -28,21 +27,20 @@ jobs:
2827 - run : dotnet build -c Release -p:Version=${{ inputs.tag }}
2928 - run : dotnet test -c Release --no-build
3029 - run : dotnet pack -c Release --no-build -p:Version=${{ inputs.tag }} -o ./publish
31- - run : dotnet nuget push "./publish/*.nupkg" -s https://www.nuget.org/api/v2/package -k ${{ secrets.NUGET_KEY }}
30+ # Store artifacts.
31+ - uses : actions/upload-artifact@v2
32+ with :
33+ name : nuget
34+ path : ./publish/
3235
3336 # release
3437 create-release :
35- needs : [dotnet-build-and-push]
36- runs-on : ubuntu-latest
37- timeout-minutes : 10
38- steps :
39- # Create Releases
40- - uses : actions/create-release@v1
41- id : create_release
42- env :
43- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44- with :
45- tag_name : ${{ env.GIT_TAG }}
46- release_name : Ver.${{ env.GIT_TAG }}
47- draft : true
48- prerelease : false
38+ needs : [build-dotnet]
39+ uses : Cysharp/Actions/.github/workflows/create-release.yaml@main
40+ with :
41+ commit-id : ' '
42+ tag : ${{ inputs.tag }}
43+ dry-run : ${{ inputs.dry-run }}
44+ nuget-push : true
45+ release-upload : false
46+ secrets : inherit
You can’t perform that action at this time.
0 commit comments