File tree Expand file tree Collapse file tree 2 files changed +16
-24
lines changed
Expand file tree Collapse file tree 2 files changed +16
-24
lines changed Original file line number Diff line number Diff line change 1010 pull_request :
1111 branches :
1212 - main
13- release :
14- types : [ created ]
1513
1614
1715jobs :
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 }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments