Skip to content

Merge pull request #580 from avcopan/dev #145

Merge pull request #580 from avcopan/dev

Merge pull request #580 from avcopan/dev #145

Workflow file for this run

name: docs
on:
push:
pull_request:
workflow_dispatch:
jobs:
docs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
# Repository
- name: Checkout the code
uses: actions/checkout@v4
# Environment
- name: Download environment files
run: |
wget https://raw.githubusercontent.com/Auto-Mech/amech-dev/main/pixi.toml
wget https://raw.githubusercontent.com/Auto-Mech/amech-dev/main/pixi.lock
- name: Set up Pixi
uses: prefix-dev/[email protected]
- name: Pip install
run: |
pixi run pip install -e . --no-deps
# Docs
- name: Build docs
run: |
cd docs
pixi run make html
- name: Upload docs
uses: actions/upload-artifact@v4
with:
name: html-docs
path: docs/build/html/
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/dev'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html