-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.36 KB
/
make_docs.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: Make Docs
on:
pull_request:
branches: ["master"]
push:
branches:
- master
tags: '*'
workflow_dispatch:
jobs:
make_docs:
permissions:
contents: write
statuses: write
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
- uses: julia-actions/cache@v1
- name: Add FuseRegistry
run: |
julia --project=docs/ -e 'using Pkg; Pkg.Registry.add(RegistrySpec(url="https://github.com/ProjectTorreyPines/FuseRegistry.jl.git")); Pkg.Registry.add("General")'
- name: Install dependencies
run: |
julia -e '
using Pkg
Pkg.activate("docs")
dependencies = PackageSpec[]
for package in ("MXHEquilibrium", "MeshTools", "MillerExtendedHarmonic")
push!(dependencies, PackageSpec(url="https://project-torrey-pines:${{secrets.PTP_READ_TOKEN}}@github.com/ProjectTorreyPines/$package.jl.git"))
end
Pkg.add(dependencies)
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()
'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: julia --project=docs/ docs/make.jl