-
Notifications
You must be signed in to change notification settings - Fork 11
35 lines (35 loc) · 914 Bytes
/
build-docs.yaml
File metadata and controls
35 lines (35 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build Docs
on:
workflow_call:
inputs:
sha:
description: 'the git sha to checkout'
required: true
type: string
jobs:
generate-docs:
runs-on: "ubuntu-24.04"
name: "generate-docs"
steps:
- uses: actions/checkout@v6
with:
ref: ${{ inputs.sha }}
fetch-depth: 0
fetch-tags: true
- uses: ./.github/actions/setup-environment
id: runner-context
with:
install-uv: true
install-devtools: true
- name: mkdocs-build
env:
PACKAGE_VERSION: "${{ steps.runner-context.outputs.package-version }}"
run: |
cd rats-devtools
uv version "$PACKAGE_VERSION"
rats-ci install
rats-docs build
- name: "upload-gh-pages"
uses: actions/upload-pages-artifact@v4
with:
path: "rats-devtools/dist/site"