Skip to content

Commit

Permalink
disable testpypi in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lreiher committed Jul 5, 2024
1 parent 95b574e commit 703b011
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Publish to PyPI

on: push
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
publish:
Expand All @@ -20,12 +26,14 @@ jobs:
run: python3 -m pip install --user build
- name: Build wheel and tarball
run: python3 -m build --sdist --wheel --outdir dist/ ${{ matrix.package }}
- name: Publish to TestPyPI
uses: pypa/[email protected]
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
skip-existing: true
# TestPyPI currently disabled cause `skip-existing: true` is not honored
# https://github.com/pypa/gh-action-pypi-publish/issues/201
# - name: Publish to TestPyPI
# uses: pypa/[email protected]
# with:
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/
# skip-existing: true
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/[email protected]
Expand Down

0 comments on commit 703b011

Please sign in to comment.