Skip to content

build: Fix dependency setup by using dedicated cache step #68

build: Fix dependency setup by using dedicated cache step

build: Fix dependency setup by using dedicated cache step #68

Workflow file for this run

name: Build documentation
on:
push:
branches: [main]
paths:
- "docs/**"
- README.md
- .github/workflows/docs.yml
pull_request:
paths:
- "docs/**"
- README.md
- .github/workflows/docs.yml
jobs:
docs:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4 # Uses the Python version in .python-version
- name: Install poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load virtual environment cache
uses: actions/cache@v2
with:
path: .venv
key: ${{ runner.os }}-${{ hashFiles("poetry.lock") }}

Check failure on line 37 in .github/workflows/docs.yml

View workflow run for this annotation

GitHub Actions / Build documentation

Invalid workflow file

The workflow is not valid. .github/workflows/docs.yml (Line: 37, Col: 16): Unexpected symbol: '"poetry'. Located at position 11 within expression: hashFiles("poetry.lock")
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: scripts/setup
- name: Build documentation
run: scripts/docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build
publish_branch: documentation
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"