Skip to content

Commit 3975a44

Browse files
authored
Fix release github action (#227)
1 parent 698d368 commit 3975a44

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/build_and_publish.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ jobs:
2727
name: artifact
2828
path: dist/*
2929

30-
publish:
30+
# Calling the publish-action twice in the same job is not supported:
31+
# https://github.com/pypa/gh-action-pypi-publish/issues/352
32+
release-TestPyPi:
3133
name: Publish package
3234
if: startsWith(github.ref, 'refs/tags/')
3335
needs: [build]
@@ -44,5 +46,18 @@ jobs:
4446
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc
4547
with:
4648
repository-url: https://test.pypi.org/legacy/
49+
release-PyPi:
50+
name: Publish package
51+
if: startsWith(github.ref, 'refs/tags/')
52+
needs: [build]
53+
runs-on: ubuntu-latest
54+
permissions:
55+
id-token: write
56+
environment: pypi
57+
steps:
58+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
59+
with:
60+
name: artifact
61+
path: dist
4762
- name: Publish package on PyPi
4863
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
Change log
88
==========
99

10+
11+
0.14.1 (2025-06-04)
12+
-------------------
13+
14+
Technical release to address a PyPI publishing issue.
15+
16+
1017
0.14.0 (2025-06-03)
1118
-------------------
1219

0 commit comments

Comments
 (0)