Skip to content

Commit

Permalink
Remove publishing to test.pypi.org
Browse files Browse the repository at this point in the history
Publishing to test.pypi.org on each push to master creates a couple of
challenges. First pypi cannot overwrite a file with the same name,
which is the case when publishing a package that does not have a different
reference tag in github. There are some solutions to work around this by
having a specific "RC" tag format for release candidates and only publishing
those to test.pypi.org. At this point that would create additional unnecessary
steps in the deployment process but may be worth revisiting in the future once
there is a versioning/tagging conventions are established.
  • Loading branch information
davereinhart committed Nov 29, 2021
1 parent 0e2a611 commit 75a77de
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: push

jobs:
build-n-publish:
name: Build and publish Python distributions to PyPI and TestPyPI
name: Build and publish Python distribution to PyPI
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
Expand All @@ -25,11 +25,6 @@ jobs:
--sdist
--wheel
--outdir dist/
- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
Expand Down

0 comments on commit 75a77de

Please sign in to comment.