-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (44 loc) · 1.59 KB
/
Copy pathdocs.yml
File metadata and controls
48 lines (44 loc) · 1.59 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
45
46
47
48
name: Docs
# Build the MkDocs Material site and publish it to the `gh-pages` branch via
# `mkdocs gh-deploy` — the same mechanism UiPath/uipath-python uses. This workflow
# only pushes a branch (needs `contents: write`); it never calls the Pages API, so
# it succeeds even before Pages is switched on.
#
# One-time setup (org owner): the UiPath org blocks Pages *creation*, so enable
# Pages for this repo once — Settings → Pages → Build and deployment →
# Source: "Deploy from a branch" → branch `gh-pages` / `/ (root)`. That's the same
# (legacy, branch-based) configuration uipath-python already runs on.
on:
push:
branches: [main]
paths:
- "docs/**"
- "mkdocs.yml"
- ".github/workflows/docs.yml"
workflow_dispatch:
permissions:
contents: write
concurrency:
group: docs-gh-pages
cancel-in-progress: true
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install social-card system libraries
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libcairo2 libfreetype6 libjpeg-turbo8 libpng16-16 pngquant
- name: Install MkDocs Material
run: pip install "mkdocs-material[imaging]>=9.5,<10"
- name: Configure git identity for gh-pages commits
run: |
git config user.name "coder-eval"
git config user.email "coder-eval@uipath.com"
- name: Build strictly and publish to gh-pages
run: mkdocs gh-deploy --force --strict