summaryrefslogtreecommitdiffstats
path: root/.github/workflows/python-publish.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/python-publish.yml')
-rw-r--r--.github/workflows/python-publish.yml14
1 files changed, 7 insertions, 7 deletions
diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml
index ae4ecfc..b73681a 100644
--- a/.github/workflows/python-publish.yml
+++ b/.github/workflows/python-publish.yml
@@ -19,6 +19,13 @@ jobs:
python -m pip install --upgrade pip
pip install setuptools wheel twine
make install-dev
+ - name: Build and publish
+ env:
+ TWINE_USERNAME: __token__
+ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
+ run: |
+ python setup.py sdist bdist_wheel
+ twine upload dist/*
- name: Update documentation
run: |
make docs
@@ -30,10 +37,3 @@ jobs:
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- - name: Build and publish
- env:
- TWINE_USERNAME: __token__
- TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
- run: |
- python setup.py sdist bdist_wheel
- twine upload dist/*