Skip to content

Add FastSurfer-CC to the FastSurfer repository #989

Add FastSurfer-CC to the FastSurfer repository

Add FastSurfer-CC to the FastSurfer repository #989

Workflow file for this run

name: AUTO doc
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
cancel-in-progress: true
on:
pull_request:
push:
branches: [dev, stable]
workflow_dispatch:
jobs:
build:
timeout-minutes: 15
runs-on: ubuntu-latest
permissions:
contents: write
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: src
- name: Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'
cache: 'pip' # caching pip dependencies
- name: Install package
run: |
python -m pip install --progress-bar off --upgrade pip setuptools wheel
python -m pip install --progress-bar off src/.[doc]
- name: Build doc
env:
PYTHONPATH: ${{ env.PYTHONPATH != '' && format( '{1}:src', env.PYTHONPATH ) || 'src' }}
TZ: UTC
run: |
sphinx-build -WT --keep-going -j auto src/doc doc-build
- name: Upload documentation
uses: actions/upload-artifact@v4
with:
name: doc
path: |
doc-build
!doc-build/.doctrees
# deploy
- name: Deploy the {dev,stable} documentation to github.io
# only on push to dev or stable
if: ${{ success() && github.event_name == 'push' && contains(fromJSON('["dev", "stable"]'), github.ref_name) }}
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc-build
exclude_assets: '.doctrees'
# destination_dir: github.ref_name will be dev or stable
destination_dir: ${{ github.ref_name }}
user_name: 'github-doc-action[bot]'
user_email: 'github-doc-action[bot]@users.noreply.github.com'