Skip to content

ReadTheDocs conf file to v2 and GitHub Actions to deploy to PyPI #1

ReadTheDocs conf file to v2 and GitHub Actions to deploy to PyPI

ReadTheDocs conf file to v2 and GitHub Actions to deploy to PyPI #1

Workflow file for this run

name: PyPI Publish
on:
push:
jobs:
deploy:
name: Publish on PyPI
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: python -m pip install build
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}