Skip to content

feat: Trunk cervical stiffness #122

feat: Trunk cervical stiffness

feat: Trunk cervical stiffness #122

Workflow file for this run

name: Documentation build and deploy
on:
push:
branches: [ ammr4-beta ]
tags: ['*']
pull_request:
branches: [ ammr4-beta ]
workflow_dispatch:
concurrency:
group: ci-docs-${{ github.ref }}
cancel-in-progress: true
jobs:
build-latest:
runs-on: ubuntu-latest
if: github.repository == 'anybody/ammr4-beta' || github.event_name != 'push'
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected]
with:
environments: docs
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'ammr4-beta' }}
activate-environment: docs
- name: Link check
run: |
cd Docs
sphinx-build -M linkcheck . _build -W --keep-going -a -q
- name: Build Documentation
run: |
cd Docs
rm -rf _build
sphinx-build -M html . _build -W --keep-going -a -t draft
- uses: actions/upload-artifact@v4
with:
name: beta-version
path: Docs/_build/html
build-tagged:
runs-on: ubuntu-latest
if: (github.repository == 'anybody/ammr4-beta' || github.event_name != 'push') && github.ref == 'refs/heads/ammr4-beta'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout last tagged version
run: |
git checkout $(git describe --tags `git rev-list --tags=ammr* --max-count=1`);
- uses: prefix-dev/[email protected]
with:
environments: docs
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'ammr4-beta' }}
activate-environment: docs
- name: Build Documentation
run: |
cd Docs
sphinx-build -M html . _build -a
- uses: actions/upload-artifact@v4
with:
name: tagged-version
path: Docs/_build/html
prepare-pages:
needs: [build-latest, build-tagged]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: tagged-version
path: public
- uses: actions/download-artifact@v4
with:
name: beta-version
path: public/beta
- uses: actions/upload-pages-artifact@v3
with:
path: public
deploy:
needs: prepare-pages
if: github.ref == 'refs/heads/ammr4-beta'
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4