Skip to content

Commit 231bf1c

Browse files
committed
ci: support manual release tag input
Allow workflow_dispatch release runs with explicit tag input and document the behavior in README.
1 parent e89e70e commit 231bf1c

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/release-binaries.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
tags:
66
- "v*"
77
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: "Release tag to publish (for example: v0.3.0)"
11+
required: true
12+
type: string
813

914
permissions:
1015
contents: write
@@ -87,4 +92,5 @@ jobs:
8792
- name: Publish GitHub release assets
8893
uses: softprops/action-gh-release@v2
8994
with:
95+
tag_name: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref_name }}
9096
files: dist/*

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ The repository includes ready workflows for CI and binary release publishing:
193193
- `.github/workflows/ci.yml`
194194
- `.github/workflows/release-binaries.yml`
195195

196+
`release-binaries.yml` runs on pushed tags (`v*`) and also supports manual
197+
dispatch with a required `tag` input.
198+
196199
## Development
197200

198201
```bash

0 commit comments

Comments
 (0)