(fix) activate venv in docs build #50
Workflow file for this run
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: Build and deploy docs | |
on: | |
push: | |
tags: ["**"] | |
# run on all tags | |
jobs: | |
docs: | |
name: Build and deploy docs | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Download build artifacts | |
uses: dawidd6/action-download-artifact@v2 | |
with: | |
name: wheels | |
workflow: build.yml | |
workflow_conclusion: success | |
check_artifacts: true | |
branch: 'master' | |
path: wheels | |
- name: Setup uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
enable-cache: true | |
cache-dependency-glob: "" | |
- name: Install Python | |
run: uv python install [email protected] | |
- name: Setup dev dependencies | |
run: uv sync --no-install-project | |
- name: Install chalc from wheel | |
run: uv pip install chalc --find-links ./wheels/ | |
- name: Build docs | |
run : source .venv/bin/activate && make -C docs html | |
- name: Deploy to GH pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: ./docs/build/html | |
branch: gh-pages |