Skip to content

Commit

Permalink
upload to pypi from distribute task
Browse files Browse the repository at this point in the history
  • Loading branch information
jcapriot committed Nov 2, 2023
1 parent 27fc5dd commit e8dc9eb
Showing 1 changed file with 13 additions and 36 deletions.
49 changes: 13 additions & 36 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ jobs:
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
- name: Upload wheels to pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true
packages-dir: ./wheelhouse/

build_manylinux_aarch64_wheels:
name: Build manylinux_aarch64
Expand All @@ -44,13 +37,6 @@ jobs:
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
- name: Upload wheels to pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true
packages-dir: ./wheelhouse/

build_musllinux_x86_64_wheels:
name: Build musllinux_x86_64 wheels
Expand All @@ -65,13 +51,6 @@ jobs:
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
- name: Upload wheels to pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true
packages-dir: ./wheelhouse/

build_mac_wheels:
name: Build macos wheels
Expand All @@ -85,13 +64,6 @@ jobs:
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
- name: Upload wheels to pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true
packages-dir: ./wheelhouse/

build_windows_wheels:
name: Build Windows wheels
Expand All @@ -105,13 +77,6 @@ jobs:
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
- name: Upload wheels to pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true
packages-dir: ./wheelhouse/

# Don't upload this one to pypi, otherwise it will be preferred over every compiled one
# We can host it here on github though for those that need it (re: jupyter-light).
Expand Down Expand Up @@ -209,6 +174,9 @@ jobs:
pure_python
]
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/download-artifact@v3
name: Retrieve assets
Expand All @@ -220,4 +188,13 @@ jobs:
with:
files: dist/*
generate_release_notes: true
prerelease: false
prerelease: false
- name: Remove anywheel before pypi upload
run: rm -f dist/geoana*none-any.whl
- name: Upload wheels to pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip-existing: true
packages-dir: ./dist/

0 comments on commit e8dc9eb

Please sign in to comment.