-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.21 KB
/
docs.yaml
File metadata and controls
44 lines (40 loc) · 1.21 KB
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
36
37
38
39
40
41
42
43
44
# This workflow will build the docs and deploy them to GitHub Pages.
name: Docs
on:
push:
branches: ["main"]
permissions:
contents: write
env:
UV_VERSION: "0.9.21"
PYTHON_VERSION: "3.10"
RUFF_VERSION: "0.14.10"
TY_VERSION: "0.0.8"
jobs:
build:
runs-on: ubuntu-latest
container: ros:humble-ros-base-jammy
steps:
- run: git config --global --add safe.directory $GITHUB_WORKSPACE
- uses: actions/checkout@v4
with:
submodules: true
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: ${{ env.UV_VERSION }}
python-version: ${{ env.PYTHON_VERSION }}
- name: Install basic tools
run: |
apt-get update && apt-get install -qq unzip curl
- name: Install dependencies
run: |
. /opt/ros/humble/setup.sh && \
uv sync --all-extras --dev --all-packages && \
uv build --all-packages
- run: |
. /opt/ros/humble/setup.sh && uv run mkdocs gh-deploy --strict --force