Remove development pypi, only publish releases

This commit is contained in:
Darren Eberly
2022-08-11 00:38:34 -04:00
parent f208b9b504
commit 0903e672eb

View File

@@ -1,11 +1,14 @@
name: Publish Python distribution to PyPI and TestPyPI
name: Publish to PyPI
on: push
on:
release:
types: [published]
jobs:
build-n-publish:
name: Build and Publish Python distribution to PyPI and TestPyPI
name: Build and Publish to PyPI
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
@@ -18,13 +21,7 @@ jobs:
- name: Build a binary wheel and a source tarball
run: >-
python -m build --sdist --wheel --outdir dist/
- name: Publish Distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TESTPYPI_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@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}