Skip to content

Update template & use hash-spec in actions #2

Update template & use hash-spec in actions

Update template & use hash-spec in actions #2

name: Preview pid4cat_model documentation build
on:
pull_request:
types:
- opened
- reopened
- synchronize
concurrency: preview-${{ github.ref }}
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: 0
- name: Set up Python 3
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
with:
python-version: 3.12
- name: Install Poetry
run: pipx install poetry
- name: Install dependencies
run: poetry install -E docs
- name: Build documentation
run: |
mkdir -p site
touch site/.nojekyll
make gendoc
([ ! -f docs/about.md ] && cp src/docs/about.md docs/) || true
poetry run mkdocs build -d site
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: site/
preview-branch: gh-pages