File tree Expand file tree Collapse file tree 1 file changed +20
-20
lines changed Expand file tree Collapse file tree 1 file changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -209,28 +209,28 @@ jobs:
209209 path : dist/*.tar.gz
210210
211211 publish-to-pypi :
212- name : Publish Python 🐍 distribution 📦 to TestPyPI
213- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
214- needs : [build_wheels, build_sdist]
212+ name : Publish Python 🐍 distribution 📦 to PyPI
213+ needs : [build_sdist, test_wheels]
215214 runs-on : ubuntu-latest
216215 environment :
217- name : testpypi
218- url : https://test.pypi.org/p/kbonney-wntr
216+ name : release
219217 permissions :
220218 id-token : write
219+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
221220 steps :
222- - name : Download wheel artifacts from build
223- uses : actions/download-artifact@v4
224- with :
225- pattern : wntr_*
226- path : dist
227- merge-multiple : true
228- - name : Download SDist artifact
229- uses : actions/download-artifact@v4
230- with :
231- name : sdist
232- path : dist
233- - name : Publish distribution 📦 to TestPyPI
234- uses : pypa/gh-action-pypi-publish@release/v1
235- with :
236- repository-url : https://test.pypi.org/legacy/
221+ - name : Download wheel artifacts
222+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
223+ with :
224+ pattern : cibw-*
225+ path : dist
226+ merge-multiple : true
227+ - name : Download SDist artifact
228+ uses : actions/download-artifact@v4
229+ with :
230+ name : sdist
231+ path : dist
232+
233+ - uses : pypa/gh-action-pypi-publish@0ab0b79471669eb3a4d647e625009c62f9f3b241 # release/v1
234+ with :
235+ user : __token__
236+ password : ${{ secrets.PYPI_WNTR_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments