We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d4e8a4 commit 37304f0Copy full SHA for 37304f0
1 file changed
.github/workflows/pypi-publish.yaml
@@ -20,9 +20,15 @@ jobs:
20
- name: Get tag
21
id: vars
22
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
23
+ - name: Create packages
24
+ run: pipenv run python setup.py sdist bdist_wheel
25
+ - name: Publish to pypi
26
+ - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
27
- name: Verify tag match
28
env:
29
GHACTION_TAG: ${{ steps.vars.outputs.tag }}
30
run: pipenv run python setup.py verify
- - name: Create packages
- run: pipenv run python setup.py sdist bdist_wheel
31
+ - uses: pypa/gh-action-pypi-publish@v1.4.1
32
+ with:
33
+ user: __token__
34
+ password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments