-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (54 loc) · 1.71 KB
/
Copy pathdeploy-web.yml
File metadata and controls
59 lines (54 loc) · 1.71 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
49
50
51
52
53
54
55
56
57
58
59
# Build the web edition of the manual and publish it to GitHub Pages.
#
# One-time setup: repo Settings → Pages → "Build and deployment" → Source =
# "GitHub Actions". After that, every push to main that touches manual content
# rebuilds and republishes the site automatically. You can also run it on demand
# from the Actions tab (workflow_dispatch).
name: Deploy web manual
on:
push:
branches: [main]
paths:
- "chapters/**"
- "images/**"
- "mkdocs.yml"
- "tools/build-web.sh"
- "tools/webify.py"
- "generate-web.sh"
- ".github/workflows/deploy-web.yml"
workflow_dispatch:
# Permissions the deploy-pages action needs.
permissions:
contents: read
pages: write
id-token: write
# Only one Pages deployment at a time; newer pushes supersede in-flight ones.
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.x"
# CI installs from PyPI (the local ./install.sh uses the apt packages on the
# FPP OS image); both give the same libraries. pillow + pyyaml are needed to
# bake the screenshot annotations (annotations/); without them the build
# fails loudly rather than shipping un-annotated images.
- run: pip install mkdocs-material pillow pyyaml
- run: ./generate-web.sh
- uses: actions/upload-pages-artifact@v5
with:
path: web/site
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v5