-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (36 loc) · 989 Bytes
/
pages.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
name: Publish GitHub pages
on:
push:
branches:
- master
tags:
- '*'
permissions:
contents: write
jobs:
build-docs-and-publish:
runs-on: "ubuntu-20.04"
container:
image: debian:bullseye
steps:
- name: Install git before checkout
run: apt-get update && apt-get install -y git
- name: Install rsync for "github-pages-deploy-action" to work
run: apt-get install -y rsync
- uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true
ref: 'master'
- name: Install dependencies and build documentation
run: |
git config --global --add safe.directory '*'
apt-get install -y python3-pip make
cd docs
pip3 install -r requirements.txt
make html
touch build/html/.nojekyll
- name: Deploy pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/build/html