-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (44 loc) · 1.55 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
name: Documentation
on:
push:
branches:
- master # update to match your development branch (master, main, dev, trunk, ...)
tags: '*'
pull_request:
jobs:
build:
permissions:
contents: write
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: '1'
- name: Add General and DanielIngrahamRegistry
shell: julia --color=yes {0}
run: |
using Pkg
Pkg.Registry.add(RegistrySpec(url="https://github.com/JuliaRegistries/General"))
Pkg.Registry.add(RegistrySpec(url="https://github.com/dingraha/DanielIngrahamRegistry"))
env:
JULIA_PKG_USE_CLI_GIT: 'true'
- name: Hack OpenMDAO.jl's CondaPkg.toml to allow local version of omjlcomps
run: |
sed --in-place -e '/^omjlcomps/s/=.*$/= ""/' ./julia/OpenMDAO.jl/CondaPkg.toml
cat ./julia/OpenMDAO.jl/CondaPkg.toml
- name: Install dependencies
shell: julia --project=docs/ --color=yes {0}
run: |
using Pkg
Pkg.develop(PackageSpec(path="./julia/OpenMDAOCore.jl"))
Pkg.develop(PackageSpec(path="./julia/OpenMDAO.jl"))
Pkg.instantiate()
using CondaPkg
CondaPkg.add_pip("omjlcomps"; version="@./../python")
Pkg.update()
- name: Build and deploy
env:
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
run: julia --project=docs/ docs/make.jl