We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce167d3 commit 20608acCopy full SHA for 20608ac
.github/workflows/python-publish.yml
@@ -9,8 +9,9 @@
9
name: Publish Python 🐍 distributions 📦 to PyPI
10
11
on:
12
- release:
13
- types: [published]
+ push:
+ tags:
14
+ - '*'
15
16
jobs:
17
build-n-publish:
@@ -37,12 +38,15 @@ jobs:
37
38
- name: Update version in setup.py
39
run: >-
40
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
44
45
- name: Build a binary wheel and a source tarball
46
run: python -m build --sdist --wheel --outdir dist/
47
48
- name: Publish distribution 📦 to PyPI
- uses: pypa/gh-action-pypi-publish@main
49
+ uses: pypa/gh-action-pypi-publish@master
50
with:
51
user: __token__
52
password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments