Skip to content

docs: explain latest stable TLibs selection in pipelines (#8) #8

docs: explain latest stable TLibs selection in pipelines (#8)

docs: explain latest stable TLibs selection in pipelines (#8) #8

Workflow file for this run

name: Build
on:
workflow_call:
inputs:
version:
required: true
type: string
outputs:
artifact-name:
value: ${{ jobs.build.outputs.artifact-name }}
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
build:
outputs:
artifact-name: ${{ steps.package.outputs.name }}-${{ github.run_id }}-${{ github.run_attempt }}
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-python@v7
with:
python-version: '3.10'
cache: pip
cache-dependency-path: projects/CoreProtect/requirements.txt
- name: Check documentation indexes
run: python scripts/check-indexes.py
- name: Install documentation dependencies
run: python -m pip install -r projects/CoreProtect/requirements.txt
- name: Build CoreProtect documentation
working-directory: projects/CoreProtect
run: python -m mkdocs build --strict --site-dir "$RUNNER_TEMP/coreprotect-site"
- name: Package documentation
id: package
env:
BUILD_VERSION: ${{ inputs.version }}
SITE_DIR: ${{ runner.temp }}/coreprotect-site
run: python3 .github/scripts/package.py
- uses: actions/upload-artifact@v7
with:
name: ${{ steps.package.outputs.name }}-${{ github.run_id }}-${{ github.run_attempt }}
path: dist/
if-no-files-found: error