-
Notifications
You must be signed in to change notification settings - Fork 14
44 lines (42 loc) · 1.14 KB
/
Documenter.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
43
44
name: Documenter
on:
push:
branches: ["main"]
tags: ["*"]
paths:
- "docs/**"
- "src/**"
- "Project.toml"
- ".github/workflows/Documenter.yml"
pull_request:
paths:
- "docs/**"
- "src/**"
- "Project.toml"
- ".github/workflows/Documenter.yml"
jobs:
deploy:
runs-on: ubuntu-latest
# These permissions are needed to:
# - Checkout the repo
# - Delete old caches: https://github.com/julia-actions/cache#usage
# - Deploy the docs to the `gh-pages` branch: https://documenter.juliadocs.org/stable/man/hosting/#Permissions
permissions:
actions: write
contents: write
statuses: write
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: "1"
- uses: julia-actions/cache@v2
- name: Configure docs environment
shell: julia --project=docs --color=yes {0}
run: |
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()
- uses: julia-actions/julia-docdeploy@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}