Skip to content

Commit

Permalink
Merge pull request #146 from mh-northlander/144-fix-pypi-upload
Browse files Browse the repository at this point in the history
Fix upload-pypi job
  • Loading branch information
eiennohito committed Oct 25, 2021
2 parents feb6c91 + 1802aba commit 1cf62ec
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/build-python-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,23 +107,17 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v') # only for tags
runs-on: ubuntu-latest
steps:
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.9'

- name: Install twine
run: |
python -m pip install --upgrade twine
- uses: actions/download-artifact@v2
with:
name: artifact # default artifact name
path: dist/

- name: Upload to PyPi
working-directory: ./python
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run:
twine upload dist/*
- name: List files to upload
run: ls -R dist/

- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
verbose: true

0 comments on commit 1cf62ec

Please sign in to comment.