-
Notifications
You must be signed in to change notification settings - Fork 91
35 lines (33 loc) · 982 Bytes
/
Documentation.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
name: Documentation
on:
push:
branches:
- master
paths:
- "src/**"
- "docs/**"
- "README.md"
- ".github/workflows/**"
tags: "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: "1"
- name: "Cache dependencies"
uses: julia-actions/cache@v2
- name: Force use of updated Julia registry
run: |
rm -rf ~/.julia/registries/General
julia -e 'ENV["JULIA_PKG_SERVER"]=""; using Pkg; Pkg.update()'
- name: "Install dependencies"
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: "Build and deploy"
env:
DOCUMENTER_KEY_ASTROAUTOMATA: ${{ secrets.DOCUMENTER_KEY }}
DOCUMENTER_KEY_CAM: ${{ secrets.DAMTP_DEPLOY_KEY }}
run: |
julia --project=docs/ docs/make.jl