Skip to content

first documentation pipeline #1

first documentation pipeline

first documentation pipeline #1

Workflow file for this run

name: 📖 Build & Deploy Docs

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

View workflow run for this annotation

GitHub Actions / .github/workflows/docs.yml

Invalid workflow file

(Line: 18, Col: 24): Unexpected symbol: '?'. Located at position 69 within expression: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') ? 0 : 1
on:
push:
branches:
- main
- dev
- 'yep/**'
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: "${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') ? 0 : 1 }}"
- name: Set up Python Environment
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[docs]"
- name: Build HTML docs
working-directory: docs
run: make html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
publish_branch: gh-pages