@@ -180,22 +180,21 @@ jobs:
180180 with :
181181 name : wheel
182182 path : dist/
183- - run : ls -R
184- # - name: Publish the release
185- # uses: softprops/action-gh-release@v1
186- # env:
187- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
188- # with:
189- # body: ${{ steps.changelog_entry.outputs.log_entry }}
190- # files: |
191- # dist/*
192- - name : Publish distribution 📦 to Test PyPI
193- uses : pypa/gh-action-pypi-publish@master
183+ - name : Publish the release
184+ uses : softprops/action-gh-release@v1
185+ env :
186+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
194187 with :
195- password : ${{ secrets.test_pypi_password }}
196- repository_url : https://test.pypi.org/legacy/
197- # - name: Publish distribution 📦 to PyPI
198- # if: startsWith(github.ref, 'refs/tags')
188+ body : ${{ steps.changelog_entry.outputs.log_entry }}
189+ files : |
190+ dist/*
191+ # - name: Publish distribution 📦 to Test PyPI
199192 # uses: pypa/gh-action-pypi-publish@master
200193 # with:
201- # password: ${{ secrets.pypi_password }}
194+ # password: ${{ secrets.test_pypi_password }}
195+ # repository_url: https://test.pypi.org/legacy/
196+ - name : Publish distribution 📦 to PyPI
197+ if : startsWith(github.ref, 'refs/tags')
198+ uses : pypa/gh-action-pypi-publish@master
199+ with :
200+ password : ${{ secrets.pypi_password }}
0 commit comments