-
-
Notifications
You must be signed in to change notification settings - Fork 108
47 lines (38 loc) · 956 Bytes
/
build.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
40
41
42
43
44
45
46
47
name: Build
on:
push:
branches: [ "sources" ]
pull_request:
branches: [ "sources" ]
env:
# Set this in the github variables, when deploying on fork
# for proper relative paths
BASE_URL_PREFIX: ${{ vars.BASE_URL_PREFIX }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.11
- name: Install dependencies
run: |
set -e
pip install jinja2 babel doctr
- name: Generate Docs
run: |
./generate
- name: Copy all build files to root
run: |
cp build/* . -r
rm -rf build
- name: Deploy 🚀
if: github.ref == 'refs/heads/sources'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: .