Skip to content

Commit 857a6ae

Browse files
committed
Move the upload back to the build wheels script
1 parent 166c503 commit 857a6ae

File tree

2 files changed

+16
-24
lines changed

2 files changed

+16
-24
lines changed

.github/workflows/cibuildwheels.yml

+16-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ on:
1010
pull_request:
1111
branches:
1212
- main
13-
release:
14-
types: [ created ]
1513

1614

1715
jobs:
@@ -98,8 +96,6 @@ jobs:
9896
build_sdist:
9997
name: Build sdist
10098
runs-on: ubuntu-latest
101-
# Only build wheels when tagging (typically a release)
102-
if: startsWith(github.event.ref, 'refs/tags')
10399
strategy:
104100
matrix:
105101
os: [ubuntu-latest]
@@ -145,3 +141,19 @@ jobs:
145141
run: |
146142
cd ./dist/blosc2-*/
147143
python -m pytest -m "not heavy"
144+
145+
upload_pypi:
146+
needs: [ build_wheels, build_sdist ] # last but not least
147+
runs-on: ubuntu-latest
148+
# Only upload wheels when tagging (typically a release)
149+
if: startsWith(github.event.ref, 'refs/tags')
150+
steps:
151+
- uses: actions/download-artifact@v3
152+
with:
153+
name: artifact
154+
path: dist
155+
156+
- uses: pypa/gh-action-pypi-publish@release/v1
157+
with:
158+
user: __token__
159+
password: ${{ secrets.blosc_pypi_secret }}

.github/workflows/upload_wheels.yml

-20
This file was deleted.

0 commit comments

Comments
 (0)