Skip to content

Commit 37304f0

Browse files
author
chadcarlson
committed
Switch around.
1 parent 0d4e8a4 commit 37304f0

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/pypi-publish.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,15 @@ jobs:
2020
- name: Get tag
2121
id: vars
2222
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')
2327
- name: Verify tag match
2428
env:
2529
GHACTION_TAG: ${{ steps.vars.outputs.tag }}
2630
run: pipenv run python setup.py verify
27-
- name: Create packages
28-
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

Comments
 (0)