File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 55 tags :
66 - ' *'
77 workflow_dispatch :
8+ inputs :
9+ tag_name :
10+ description : ' The Git tag name for the release (e.g., v1.2.3)'
11+ required : true
12+ type : string
13+
814jobs :
915 build :
1016 runs-on : ubuntu-latest
@@ -45,10 +51,12 @@ jobs:
4551
4652 - name : Release
4753 uses : softprops/action-gh-release@v1
48- if : startsWith(github.ref, 'refs/tags/')
4954 with :
5055 files : |
5156 target/x86_64-unknown-linux-musl/release/agnos_amd64
5257 target/x86_64-unknown-linux-musl/release/agnos-generate-accounts-keys_amd64
58+ tag_name : ${{ github.event_name == 'push' && github.ref || github.event.inputs.tag_name }}
59+ name : Release ${{ github.event_name == 'push' && github.ref || github.event.inputs.tag_name }}
60+ draft : true
5361 env :
5462 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments