1 parent 519c8f2 commit a2f6135Copy full SHA for a2f6135
1 file changed
.github/workflows/rust_build.yml
@@ -5,6 +5,12 @@ on:
5
tags:
6
- '*'
7
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
+
14
jobs:
15
build:
16
runs-on: ubuntu-latest
@@ -45,10 +51,12 @@ jobs:
45
51
46
52
- name: Release
47
53
uses: softprops/action-gh-release@v1
48
- if: startsWith(github.ref, 'refs/tags/')
49
54
with:
50
55
files: |
56
target/x86_64-unknown-linux-musl/release/agnos_amd64
57
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
61
env:
62
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments