Skip to content

Commit a2f6135

Browse files
committed
Make manual run of build CI update release with artifacts
1 parent 519c8f2 commit a2f6135

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/rust_build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
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+
814
jobs:
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 }}

0 commit comments

Comments
 (0)