Our project on test PyPI is free

This commit is contained in:
Hynek Schlawack 2023-07-12 05:10:55 +02:00
parent c3e2d2b2b4
commit 7c8a3aef24
No known key found for this signature in database
GPG Key ID: AE2536227F69F181

View File

@ -30,25 +30,24 @@ jobs:
- uses: hynek/build-and-inspect-python-package@v1
# Upload to Test PyPI on every commit on main.
# XXX: our name is currently squatted by a third party on test.pypi.org.
# release-test-pypi:
# name: Publish in-dev package to test.pypi.org
# environment: release-test-pypi
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# runs-on: ubuntu-latest
# needs: build-package
release-test-pypi:
name: Publish in-dev package to test.pypi.org
environment: release-test-pypi
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: build-package
# steps:
# - name: Download packages built by build-and-inspect-python-package
# uses: actions/download-artifact@v3
# with:
# name: Packages
# path: dist
steps:
- name: Download packages built by build-and-inspect-python-package
uses: actions/download-artifact@v3
with:
name: Packages
path: dist
# - name: Upload package to Test PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# repository-url: https://test.pypi.org/legacy/
- name: Upload package to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
# Upload to real PyPI on GitHub Releases.
release-pypi: