Skip to content

Commit e8dc9eb

Browse files
committed
upload to pypi from distribute task
1 parent 27fc5dd commit e8dc9eb

File tree

1 file changed

+13
-36
lines changed

1 file changed

+13
-36
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@ jobs:
1919
- uses: actions/upload-artifact@v3
2020
with:
2121
path: ./wheelhouse/*.whl
22-
- name: Upload wheels to pypi
23-
uses: pypa/gh-action-pypi-publish@release/v1
24-
with:
25-
user: __token__
26-
password: ${{ secrets.PYPI_API_TOKEN }}
27-
skip_existing: true
28-
packages-dir: ./wheelhouse/
2922

3023
build_manylinux_aarch64_wheels:
3124
name: Build manylinux_aarch64
@@ -44,13 +37,6 @@ jobs:
4437
- uses: actions/upload-artifact@v3
4538
with:
4639
path: ./wheelhouse/*.whl
47-
- name: Upload wheels to pypi
48-
uses: pypa/gh-action-pypi-publish@release/v1
49-
with:
50-
user: __token__
51-
password: ${{ secrets.PYPI_API_TOKEN }}
52-
skip_existing: true
53-
packages-dir: ./wheelhouse/
5440

5541
build_musllinux_x86_64_wheels:
5642
name: Build musllinux_x86_64 wheels
@@ -65,13 +51,6 @@ jobs:
6551
- uses: actions/upload-artifact@v3
6652
with:
6753
path: ./wheelhouse/*.whl
68-
- name: Upload wheels to pypi
69-
uses: pypa/gh-action-pypi-publish@release/v1
70-
with:
71-
user: __token__
72-
password: ${{ secrets.PYPI_API_TOKEN }}
73-
skip_existing: true
74-
packages-dir: ./wheelhouse/
7554

7655
build_mac_wheels:
7756
name: Build macos wheels
@@ -85,13 +64,6 @@ jobs:
8564
- uses: actions/upload-artifact@v3
8665
with:
8766
path: ./wheelhouse/*.whl
88-
- name: Upload wheels to pypi
89-
uses: pypa/gh-action-pypi-publish@release/v1
90-
with:
91-
user: __token__
92-
password: ${{ secrets.PYPI_API_TOKEN }}
93-
skip_existing: true
94-
packages-dir: ./wheelhouse/
9567

9668
build_windows_wheels:
9769
name: Build Windows wheels
@@ -105,13 +77,6 @@ jobs:
10577
- uses: actions/upload-artifact@v3
10678
with:
10779
path: ./wheelhouse/*.whl
108-
- name: Upload wheels to pypi
109-
uses: pypa/gh-action-pypi-publish@release/v1
110-
with:
111-
user: __token__
112-
password: ${{ secrets.PYPI_API_TOKEN }}
113-
skip_existing: true
114-
packages-dir: ./wheelhouse/
11580

11681
# Don't upload this one to pypi, otherwise it will be preferred over every compiled one
11782
# We can host it here on github though for those that need it (re: jupyter-light).
@@ -209,6 +174,9 @@ jobs:
209174
pure_python
210175
]
211176
runs-on: ubuntu-latest
177+
defaults:
178+
run:
179+
shell: bash -l {0}
212180
steps:
213181
- uses: actions/download-artifact@v3
214182
name: Retrieve assets
@@ -220,4 +188,13 @@ jobs:
220188
with:
221189
files: dist/*
222190
generate_release_notes: true
223-
prerelease: false
191+
prerelease: false
192+
- name: Remove anywheel before pypi upload
193+
run: rm -f dist/geoana*none-any.whl
194+
- name: Upload wheels to pypi
195+
uses: pypa/gh-action-pypi-publish@release/v1
196+
with:
197+
user: __token__
198+
password: ${{ secrets.PYPI_API_TOKEN }}
199+
skip-existing: true
200+
packages-dir: ./dist/

0 commit comments

Comments
 (0)