Skip to content

Commit e6ccaf8

Browse files
authored
Update build.yml
1 parent 41f77c6 commit e6ccaf8

1 file changed

Lines changed: 4 additions & 17 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,9 @@ jobs:
3232
--wheel
3333
--outdir dist/
3434
.
35-
36-
upload_pypi:
37-
needs: [build-n-publish]
38-
runs-on: ubuntu-latest
39-
# upload to PyPI on every tag starting with 'v'
40-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
41-
# alternatively, to publish when a GitHub Release is created, use the following rule:
42-
# if: github.event_name == 'release' && github.event.action == 'published'
43-
steps:
44-
- uses: actions/download-artifact@v2
45-
with:
46-
name: artifact
47-
path: dist
48-
49-
- uses: pypa/gh-action-pypi-publish@master
35+
- name: Publish distribution 📦 to PyPI
36+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
37+
uses: pypa/gh-action-pypi-publish@master
5038
with:
51-
user: __token__
5239
password: ${{ secrets.PYPI_API_TOKEN }}
53-
# To test: repository_url: https://test.pypi.org/legacy/
40+
repository_url: https://pypi.org/legacy/

0 commit comments

Comments
 (0)