-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.08 KB
/
docs.yml
File metadata and controls
38 lines (38 loc) · 1.08 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
name: Documentation
on:
push: # see https://github.com/orgs/community/discussions/26276#discussioncomment-4617932
branches:
- main
paths-ignore:
- README.md
- .gitignore
- LICENSE.md
- 'docs/src/bench/**' # avoid feedback loop since benchmark modifies files in this path
tags: [v*] # also want documentation for tags
pull_request:
branches:
- main
paths-ignore:
- README.md
- .gitignore
- LICENSE.md
- 'docs/src/bench/**'
jobs:
docs:
#needs: benchmark # So it can build the page with the results
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1.12'
- run: |
julia --project=docs -e '
import Pkg;
Pkg.develop(Pkg.PackageSpec(path=pwd()))
Pkg.instantiate()'
- run: julia --project=docs docs/make.jl #Pkg.add("Documenter"); using Pkg
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}