Skip to content

publish

publish #21

Workflow file for this run

name: publish
on:
workflow_run:
workflows:
- test
branches:
- main
types:
- completed
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
cache: "pip" # caching pip dependencies
- run: pip install --upgrade -r requirements.txt
- run: python -m build --sdist --wheel --outdir dist/
- run: mkdocs gh-deploy --force
- uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
password: ${{ secrets.PYPI_API_TOKEN }}