-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (43 loc) · 1.34 KB
/
deploy_docs.yml
File metadata and controls
46 lines (43 loc) · 1.34 KB
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
name: Build and deploy docs
on:
# Run on pushes to main
push:
branches:
- main
jobs:
build_docs:
permissions:
contents: write
name: Run doc build and deploy
# Run on the Github hosted runner
runs-on: ubuntu-latest
container:
image: firedrakeproject/firedrake-vanilla-default:latest
volumes:
- ${{ github.workspace }}:/home/firedrake/output
# Steps represent a sequence of tasks that will be executed as
# part of the jobs
steps:
- name: fix home
run: echo "HOME=/root" >> "$GITHUB_ENV"
- uses: actions/checkout@v4
- name: Install firedrake and dependencies, checkout fuse branches
run: |
chmod +x ./.github/workflows/setup_repos.sh
./.github/workflows/setup_repos.sh
- name: Install checkedout fuse
run: |
python3 -m pip install --break-system-packages -e '.[docs]'
- name: Build docs
run: |
make docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html
publish_branch: gh-pages
enable_jekyll: false
allow_empty_commit: false
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'