Skip to content

v0.45.0

v0.45.0 #115

Workflow file for this run

name: release
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
max-parallel: 6
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools setuptools_scm wheel build
- name: Build packages
run: python -m build
working-directory: ./
- name: Publish package
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPY_API_TOKEN }}
packages_dir: ./dist/
docs:
runs-on: ubuntu-latest
needs:
- deploy
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e .
pip install -r requirements-docs.txt
- name: Build
run: sphinx-build ./docs ./docs/_build
- name: Deploy
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build