Skip to content

Merge pull request #72 from nullr0ute/ci-el9 #52

Merge pull request #72 from nullr0ute/ci-el9

Merge pull request #72 from nullr0ute/ci-el9 #52

Workflow file for this run

name: Publish to PyPI and TestPyPI
on: push
jobs:
build-n-publish:
name: Build and publish to PyPI and TestPyPI
runs-on: ubuntu-latest
environment: pypi_publish
steps:
- uses: actions/checkout@master
- name: Build a source tarball
run: |
python setup.py sdist
- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@master
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/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}