Skip to content

Commit

Permalink
Fix PyPi uploads (#5)
Browse files Browse the repository at this point in the history
* create 2.1.9rc0 for test release

* run upload on release only

* upgrade test version

* just use the janky internal version...

* just use the janky internal version...

* update rc version

* oops i did it again lol

* fix version.py

* change artifact names

* pull in remaining changes and get ready for release
  • Loading branch information
wbarnha authored Nov 28, 2022
1 parent 77bbd92 commit 887d3e4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,17 @@ jobs:
name: 'Upload packages'
needs: ['build_wheels']
runs-on: 'ubuntu-latest'
if: github.event_name == 'release' && github.event.action == 'created'
if: contains(github.ref, 'tags/')
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
name: 'Download artifacts'
with:
name: 'artifact'
path: 'dist'
name: wheels
path: ./wheelhouse

- uses: pypa/gh-action-pypi-publish@release/v1
name: "Publish package to PyPI"
with:
user: '__token__'
password: '${{ secrets.PYPI_API_TOKEN }}'
packages_dir: ./wheelhouse
9 changes: 5 additions & 4 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,17 @@ jobs:
name: 'Upload packages'
needs: ['build_wheels', 'build_wheels_aarch64']
runs-on: 'ubuntu-latest'
if: github.event_name == 'release' && github.event.action == 'created'
if: contains(github.ref, 'tags/')
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
name: 'Download artifacts'
with:
name: 'artifact'
path: 'dist'
name: wheels
path: ./wheelhouse

- uses: pypa/gh-action-pypi-publish@release/v1
name: "Publish package to PyPI"
with:
user: '__token__'
password: '${{ secrets.PYPI_API_TOKEN }}'
packages_dir: ./wheelhouse
10 changes: 5 additions & 5 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,17 @@ jobs:
name: 'Upload packages'
needs: ['build_wheels']
runs-on: 'ubuntu-latest'
if: github.event_name == 'release' && github.event.action == 'created'
if: contains(github.ref, 'tags/')
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
name: 'Download artifacts'
with:
name: 'artifact'
path: 'dist'
name: wheels
path: ./wheelhouse

- uses: pypa/gh-action-pypi-publish@release/v1
name: "Publish package to PyPI"
with:
user: '__token__'
password: '${{ secrets.PYPI_API_TOKEN }}'

packages_dir: ./wheelhouse

0 comments on commit 887d3e4

Please sign in to comment.