We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 10a0c35 + 3fbe860 commit 64f6b49Copy full SHA for 64f6b49
.github/workflows/cd.yml
@@ -2,6 +2,9 @@ name: CD
2
on:
3
push:
4
tags: v*
5
+ pull_request:
6
+ paths:
7
+ - .github/workflows/cd.yml
8
jobs:
9
publish:
10
runs-on: ubuntu-latest
@@ -13,12 +16,13 @@ jobs:
13
16
with:
14
17
python-version: '3.10'
15
18
- name: Install build dependencies
- run: python3 -m pip install build wheel
19
+ run: python -m pip install build wheel
20
- name: Build distributions
21
shell: bash -l {0}
- run: python setup.py sdist bdist_wheel
22
+ run: python -m build
23
- name: Publish package to PyPI
- uses: pypa/gh-action-pypi-publish@v1.4.2
24
+ if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
25
+ uses: pypa/gh-action-pypi-publish@v1.6.4
26
27
user: __token__
28
password: ${{ secrets.pypi_token }}
0 commit comments