Skip to content

test only available backends #245

test only available backends

test only available backends #245

Workflow file for this run

name: Docs
on:
release:
types: [ released ]
push:
branches:
- dev
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: fregante/setup-git-user@v2
- run: git fetch origin gh-pages --depth=1
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install
run: |
pip install -e .
pip install -r docs/requirements.txt
# release
- id: get_version
if: github.event_name == 'release'
name: Get the release version
uses: Simply007/get-version-action@v2
- name: Deploy the docs
if: github.event_name == 'release'
run: |
PYTHONPATH=$PYTHONPATH:./docs mike deploy ${{ steps.get_version.outputs.version-without-v }} latest --push --update-aliases
# dev
- name: Deploy the docs
if: ${{ github.ref == 'refs/heads/dev' }}
run: |
PYTHONPATH=$PYTHONPATH:./docs mike deploy dev --push