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