test only available backends #245
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |