forked from godotengine/godot-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.07 KB
/
build_offline_docs.yml
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
name: Build documentation for offline usage
on:
workflow_dispatch:
schedule:
# Every week on Monday at midnight (UTC).
# This keeps the generated HTML documentation fresh.
- cron: '0 0 * * 1'
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
branch:
- master
- stable
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ matrix.branch }}
- name: Install dependencies
run: |
sudo pip3 install -r requirements.txt
sudo pip3 install codespell
# Build the HTML to upload it.
- name: Sphinx build
run: |
sphinx-build --color -d _build/doctrees . _build/html
- uses: actions/upload-artifact@v3
with:
name: godot-docs-html-${{ matrix.branch }}
path: _build/html
# Keep the current build and the previous build (in case a scheduled build failed).
# This makes it more likely to have at least one successful build available at all times.
retention-days: 15