Skip to content

PyPI Publish

PyPI Publish #6

Workflow file for this run

name: PyPI Publish
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-18.04
steps:
- uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Build package
run: make build
# - name: Publish dist 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 dist to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}