Skip to content

Commit 20608ac

Browse files
committed
update gh actions
1 parent ce167d3 commit 20608ac

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/python-publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
name: Publish Python 🐍 distributions 📦 to PyPI
1010

1111
on:
12-
release:
13-
types: [published]
12+
push:
13+
tags:
14+
- '*'
1415

1516
jobs:
1617
build-n-publish:
@@ -37,12 +38,15 @@ jobs:
3738
- name: Update version in setup.py
3839
run: >-
3940
sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.TAG_NAME }}/g" setup.py
41+
42+
- name: Install build
43+
run: python -m pip install build
4044

4145
- name: Build a binary wheel and a source tarball
4246
run: python -m build --sdist --wheel --outdir dist/
4347

4448
- name: Publish distribution 📦 to PyPI
45-
uses: pypa/gh-action-pypi-publish@main
49+
uses: pypa/gh-action-pypi-publish@master
4650
with:
4751
user: __token__
4852
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)