Skip to content

Commit

Permalink
Merge pull request #205 from biolab/pypi_publish
Browse files Browse the repository at this point in the history
CI: pypi publish
  • Loading branch information
JakaKokosar authored Feb 24, 2021
2 parents 0ac37ca + b8d9715 commit ec534c9
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Upload sdist
uses: actions/upload-artifact@v2
with:
name: sdist_file
name: sdist_files
path: dist/*.tar.gz

upload_release_assets:
Expand All @@ -78,3 +78,33 @@ jobs:
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ steps.download_artifact.outputs.download-path }}/*.whl

pypi_publish:
name: PyPI Publish
needs: [build_wheels, build_sdist]
runs-on: ubuntu-20.04

steps:
- name: Download bdist files
uses: actions/download-artifact@v2
with:
name: bdist_files
path: downloads/

- name: Download sdist files
uses: actions/download-artifact@v2
with:
name: sdist_files
path: downloads/

- name: Display structure of downloaded files
run: ls -R downloads/

- name: Publish packages to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: downloads/
# repository_url: https://test.pypi.org/legacy/
# verbose: true

0 comments on commit ec534c9

Please sign in to comment.