Skip to content

github action added to build sphinx-based doc. #10

github action added to build sphinx-based doc.

github action added to build sphinx-based doc. #10

Workflow file for this run

---
name: Docs
on: [push, pull_request, workflow_dispatch]
env:
BME_PROJECT_DIR: "${{env.GITHUB_WORKSPACE}}"

Check failure on line 5 in .github/workflows/documentation.yaml

View workflow run for this annotation

GitHub Actions / Docs

Invalid workflow file

The workflow is not valid. .github/workflows/documentation.yaml (Line: 5, Col: 20): Unrecognized named-value: 'env'. Located at position 1 within expression: env.GITHUB_WORKSPACE
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/publish-sphinx-tmp' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v3
- name: Install dependencies
run: |
pip install -r python-virtualenvs/multigit-development.requirements
- name: Sphinx build
run: |
cd src && make doc
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: src/build/html/
force_orphan: true