Skip to content

Commit fa6d5b2

Browse files
committed
Allow manual triggering of the release workflow
1 parent 80421c9 commit fa6d5b2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Release
33
on:
44
release:
55
types: [released]
6+
workflow_dispatch:
7+
inputs:
8+
tag_name:
9+
description: "The tag to release"
10+
required: true
11+
type: string
612

713
concurrency:
814
group: release
@@ -27,7 +33,7 @@ jobs:
2733

2834
- name: Set version statically
2935
run: |
30-
VERSION=${{ github.event.release.tag_name }}
36+
VERSION="${{ github.event.release.tag_name }}${{ inputs.tag_name }}"
3137
sed -i "s/setup_requires=.*/version='$VERSION',/; s/use_scm_version=.*//" setup.py
3238
echo "Version: $VERSION"
3339
@@ -127,7 +133,7 @@ jobs:
127133
id-token: write
128134
environment:
129135
name: pypi
130-
url: https://pypi.org/project/python-minifier/${{ github.event.release.tag_name }}
136+
url: https://pypi.org/project/python-minifier/${{ github.event.release.tag_name }}${{ inputs.tag_name }}
131137
steps:
132138
- name: Download distribution artifacts
133139
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)