Skip to content

Commit cdba38e

Browse files
authored
Merge pull request #36 from will-moore/pypi_release_action
Use pypa/gh-action-pypi-publish@release/v1 in publish_pypi.yml
2 parents fe42493 + af94184 commit cdba38e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/publish_pypi.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ jobs:
1717
python -m build
1818
- name: Publish distribution to PyPI
1919
if: startsWith(github.ref, 'refs/tags')
20-
uses: pypa/gh-action-pypi-publish@v1.8.14
20+
uses: pypa/gh-action-pypi-publish@release/v1
2121
with:
2222
password: ${{ secrets.PYPI_PASSWORD }}
23+
- name: Create a GitHub release
24+
if: startsWith(github.ref, 'refs/tags')
25+
run: gh release create --generate-notes "${GITHUB_REF#refs/tags/}"
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)