forked from OpenModelica/OMJulia.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.18 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
name: Documentation
on:
push:
branches:
- master
tags: '*'
pull_request:
jobs:
documentation:
permissions:
contents: write
runs-on: ubuntu-latest
strategy:
matrix:
julia-version: ['1.9']
julia-arch: [x64]
os: [ubuntu-latest]
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Setup OpenModelica
uses: AnHeuermann/[email protected]
with:
version: 'nightly'
packages: |
'omc'
libraries: |
'Modelica 4.0.0'
- name: Setup Julia
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- name: Cache Julia
uses: julia-actions/cache@v1
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: julia --project=docs/ docs/make.jl