-
Notifications
You must be signed in to change notification settings - Fork 58
42 lines (35 loc) · 1.02 KB
/
build_docs_on_pr.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
name: Build docs artifact for PR
on:
pull_request:
paths:
# We generate documentation for boefje, bytes, keiko, mula and octopoes
# from code so the workflow should also depend on it.
- "boefje/**"
- "bytes/**"
- "docs/**"
- "keiko/**"
- "mula/**"
- "octopoes/**"
- "requirements.txt"
- ".github/workflows/build_docs_on_pr.yml"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-artifact:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
cache: "pip" # caching pip dependencies
- name: Install pip dependencies
run: pip install -r requirements.txt
- name: Compile static HTML
run: make docs
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: "github-pages-no-deploy"
path: "docs/_build"