-
Notifications
You must be signed in to change notification settings - Fork 64
54 lines (51 loc) · 1.59 KB
/
Documenter.yaml
File metadata and controls
54 lines (51 loc) · 1.59 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
47
48
49
50
51
52
53
54
name: Documentation
on:
pull_request:
paths:
- ".github/workflows/Documenter.yaml"
- "docs/**"
- "lib/**"
- "src/**"
push:
branches:
- main
tags: "*"
paths:
- ".github/workflows/Documenter.yaml"
- "docs/**"
- "lib/**"
- "src/**"
concurrency:
# Same group concurrency as the `PreviewCleanup.yml` workflow, because they both
# git-push to the same branch, so we want to avoid clashes. NOTE: this is
# different from the concurrency group below, which is to cancel successive
# jobs from within the PR.
group: docs-pushing
jobs:
docs:
name: Documentation
runs-on: ubuntu-latest
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
steps:
- uses: actions/checkout@v6
- uses: julia-actions/setup-julia@v3
with:
version: "1.11"
- uses: julia-actions/cache@v3
- name: Instantiate docs environment
shell: julia --color=yes --project=docs {0}
run: |
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()
- name: Build documentation
run: julia --color=yes --project=docs docs/make.jl
env:
XLA_FLAGS: --xla_force_host_platform_device_count=8
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
JULIA_DEBUG: "Reactant_jll,Reactant,Documenter"