Skip to content

Commit

Permalink
Merge pull request #810 from htm-community/pypi_cibuildwheel
Browse files Browse the repository at this point in the history
CI: publish pypi using download artifact
  • Loading branch information
breznak authored Jun 1, 2020
2 parents 0b6f108 + 0c2ef20 commit 267b676
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,48 @@ jobs:
name: wheels
path: ./wheelhouse



publish-pypi: #this is a separate job, as the upload must run only once, and when all wheels are created
needs: [build-release-gh]
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master

- uses: actions/download-artifact@master
with:
name: wheels
path: dist/

# - uses: actions/download-artifact@master
# with:
# name: dist-macOs-latest
# path: dist/

# - uses: actions/download-artifact@master
# with:
# name: dist-windows-2019
# path: dist/

# - uses: actions/download-artifact@master
# with:
# name: dist-arm64
# path: dist/

- name: pre-PyPI
#copy dist data to /dist, where PyPI Action expects it
run: |
cd dist
ls -lh
rm *.egg #remove obsoleted egg format
rm requirements.txt # PIPY upload has problem with non-*.whl files
cd ..
ls dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
repository_url: https://test.pypi.org/legacy/ #TODO rm for real pypi
packages_dir: ./wheelhouse/
packages_dir: ./dist/

0 comments on commit 267b676

Please sign in to comment.