Skip to content

Commit d856bda

Browse files
committed
lol. more version fixing.
1 parent b37b694 commit d856bda

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
push:
55
tags:
66
- 'v*'
7+
workflow_dispatch:
8+
inputs:
9+
tag_name:
10+
description: 'Tag to publish (e.g., v0.1.0)'
11+
required: true
12+
type: string
713

814
jobs:
915
release:
@@ -17,6 +23,7 @@ jobs:
1723
- uses: actions/checkout@v4
1824
with:
1925
fetch-depth: 0
26+
ref: ${{ github.event.inputs.tag_name || github.ref }}
2027

2128
- name: Set up Python
2229
uses: actions/setup-python@v5
@@ -36,6 +43,7 @@ jobs:
3643
with:
3744
files: dist/*
3845
generate_release_notes: true
46+
tag_name: ${{ github.event.inputs.tag_name || github.ref_name }}
3947

4048
- name: Publish to PyPI
4149
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/version.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Install dependencies
3333
run: |
3434
pip install --upgrade pip
35-
pip install --upgrade bump-my-version hatch twine
35+
pip install --upgrade bump-my-version
3636
3737
- name: Configure Git
3838
run: |
@@ -49,15 +49,3 @@ jobs:
4949
github_token: ${{ secrets.GITHUB_TOKEN }}
5050
branch: ${{ github.ref }}
5151
tags: true
52-
53-
- name: Build package
54-
run: hatch build
55-
56-
- name: Create GitHub Release
57-
uses: softprops/action-gh-release@v1
58-
with:
59-
files: dist/*
60-
generate_release_notes: true
61-
62-
- name: Publish to PyPI
63-
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)