Skip to content

Move from readthedocs to github pages (#182) #18

Move from readthedocs to github pages (#182)

Move from readthedocs to github pages (#182) #18

Workflow file for this run

name: Publish
on:
push:
tags:
- '**'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
env:
PIP_ONLY_BINARY: ":all:"
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # needed by setuptools_scm
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: python -m pip install --upgrade pip build
- run: python -m build
- run: python -m pip install --prefer-binary $(echo dist/*.whl)'[test]'
- run: python -m pytest
- uses: pypa/gh-action-pypi-publish@release/v1
if: github.event_name == 'push' && contains(github.event.ref, '/tags/')
with:
user: __token__
password: ${{ secrets.pypi_token }}