-
Notifications
You must be signed in to change notification settings - Fork 5
53 lines (45 loc) · 1.67 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# This is a basic workflow to help you get started with Actions
name: Documentation
on:
push:
branches: [main]
tags: '*'
pull_request:
jobs:
Documenter:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@latest
- uses: actions/cache@v3
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-docs-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-docs-${{ env.cache-name }}-
${{ runner.os }}-docs-
- name: Add registries
run: |
using Pkg
Pkg.Registry.add(RegistrySpec(url="https://github.com/NQCD/NQCRegistry"))
Pkg.Registry.add(RegistrySpec(url="https://github.com/JuliaMolSim/MolSim"))
Pkg.Registry.add(RegistrySpec(url="https://github.com/ACEsuit/ACEregistry"))
Pkg.Registry.add(RegistrySpec(name="General"))
shell: julia --color=yes {0}
- name: Install ase
run: python3 -m pip install ase
- name: Dev dependencies
run: |
using Pkg
Pkg.develop([(;path=pwd()), (;name="NQCModels")])
Pkg.instantiate()
shell: julia --color=yes --project=docs/ {0}
- name: Build and deploy
run: julia --color=yes --project=docs/ docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
GKSwstype: "100" # https://discourse.julialang.org/t/generation-of-documentation-fails-qt-qpa-xcb-could-not-connect-to-display/60988