Skip to content

Release v4.10.5

Release v4.10.5 #499

Workflow file for this run

name: docs
on:
push:
branches: [main]
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.x"
- name: Install Poetry
uses: snok/[email protected]
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Set up cache
id: cached-poetry-dependencies
uses: actions/[email protected]
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install --extras "all"
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: Autogenerate reference documentation
run: |
source .venv/bin/activate
python docs/.vitepress/pydocgen.py
- name: Install vitepress
uses: bahmutov/[email protected]
- name: Build
run: |
/home/runner/work/machinable/machinable/node_modules/vitepress/bin/vitepress.js build docs
cp -r docs/.vitepress/public/* docs/.vitepress/dist/
cp -r docs/logo docs/.vitepress/dist/
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/.vitepress/dist