Skip to content

Commit fa53ea1

Browse files
committed
adding manual run option
1 parent 4f4a649 commit fa53ea1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
name: Release
2+
23
on:
34
push:
45
tags:
56
- 'v*'
7+
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: "Tag to release (e.g. v1.0.0-test)"
11+
required: true
612

713
permissions:
814
contents: write
@@ -15,6 +21,12 @@ jobs:
1521
steps:
1622
- uses: actions/checkout@v4
1723

24+
- name: Create local tag (manual run only)
25+
if: github.event_name == 'workflow_dispatch'
26+
run: |
27+
git tag ${{ inputs.tag }}
28+
git push origin ${{ inputs.tag }}
29+
1830
- uses: actions/setup-node@v4
1931
with:
2032
node-version: 22

0 commit comments

Comments
 (0)