@@ -94,28 +94,28 @@ jobs:
9494 '${{ github.ref_name }}' dist/**
9595 --repo '${{ github.repository }}'
9696
97- # publish-to-testpypi:
98- # name: Publish Python 🐍 distribution 📦 to TestPyPI
99- # if: startsWith(github.ref, 'refs/tags/') # only publish to TestPyPI on tag pushes
100- # needs:
101- # - build
102- # runs-on: ubuntu-latest
97+ publish-to-testpypi :
98+ name : Publish Python 🐍 distribution 📦 to TestPyPI
99+ if : startsWith(github.ref, 'refs/tags/') # only publish to TestPyPI on tag pushes
100+ needs :
101+ - build
102+ runs-on : ubuntu-latest
103103
104- # environment:
105- # name: testpypi
106- # url: ${{ env.PYPI_TEST_URL }}
104+ environment :
105+ name : testpypi
106+ url : ${{ env.PYPI_TEST_URL }}
107107
108- # permissions:
109- # id-token: write # IMPORTANT: mandatory for trusted publishing
108+ permissions :
109+ id-token : write # IMPORTANT: mandatory for trusted publishing
110110
111- # steps:
112- # - name: Download all the dists
113- # uses: actions/download-artifact@v4
114- # with:
115- # name: python-package-distributions
116- # path: dist/
117- # - name: Publish distribution 📦 to TestPyPI
118- # uses: pypa/gh-action-pypi-publish@release/v1.10
119- # with:
120- # repository-url: https://test.pypi.org/legacy/
121- # skip-existing: true
111+ steps :
112+ - name : Download all the dists
113+ uses : actions/download-artifact@v4
114+ with :
115+ name : python-package-distributions
116+ path : dist/
117+ - name : Publish distribution 📦 to TestPyPI
118+ uses : pypa/gh-action-pypi-publish@release/v1.10
119+ with :
120+ repository-url : https://test.pypi.org/legacy/
121+ skip-existing : true
0 commit comments