Skip to content

update documentation workflow #42

update documentation workflow

update documentation workflow #42

Workflow file for this run

name: documentation
on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- "docs/**"
- "mkdocs.yml"
permissions:
contents: write
jobs:
documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5 with:

Check failure on line 22 in .github/workflows/documentation.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/documentation.yml

Invalid workflow file

You have an error in your yaml syntax on line 22
python-version: 3.x - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4 with:
key: zensical-${{ env.cache_id }} path: .cache
restore-keys: | zensical-
- run: pip install zensical==0.0.46
- run: zensical build - uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./site