File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,9 +114,7 @@ jobs:
114114 pytest -vvv -r a --pyargs ablog
115115 make tests
116116
117- publish :
118- # Build wheels on PRs only when labelled. Releases will only be published if tagged ^v.*
119- # see https://github-actions-workflows.openastronomy.org/en/latest/publish.html#upload-to-pypi
117+ build :
120118 if : |
121119 github.event_name != 'pull_request' ||
122120 (
@@ -128,5 +126,21 @@ jobs:
128126 with :
129127 python-version : " 3.13"
130128 submodules : false
131- secrets :
132- pypi_token : ${{ secrets.PYPI_TOKEN }}
129+ upload_to_pypi : false
130+ save_artifacts : true
131+
132+ upload :
133+ if : startsWith(github.ref, 'refs/tags/v')
134+ name : Upload to PyPI
135+ runs-on : ubuntu-latest
136+ needs : [build]
137+ steps :
138+ - name : Download artifacts
139+ uses : actions/download-artifact@v5
140+ with :
141+ merge-multiple : true
142+ pattern : dist-*
143+ path : dist
144+
145+ - name : Run upload
146+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments