generated from readthedocs/tutorial-template
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (37 loc) · 940 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
48
name: Build Documentation
on:
pull_request:
branches: [ "main" ]
workflow_dispatch:
workflow_call:
merge_group:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: 🛎 Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Update Submodule
run: |
git submodule update --remote --merge
working-directory: source/urchin/tutorials/urchin-examples
- name: Install Pandoc
run: |
sudo apt-get update
sudo apt-get install -y pandoc
- name: 🐍 Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- name: 📦 Install dependencies
run: pip install -r requirements.txt
- name: 🔨 Build
run: make html
- name: ⬆️ Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'build/html'