-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (32 loc) · 1.25 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
name: Documentation
# See https://documenter.juliadocs.org/stable/man/hosting/
# Should host doc at https://sintef.github.io/Muscade.jl/dev
# or https://sintef.github.io/Muscade.jl/stable
on:
push:
branches:
- main
- dev
- doc
tags: '*'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: '1.10'
- name: Install x-server
- run: apt-get update
- run: apt-get upgrade
- run: apt-get install -y cmake xorg-dev mesa-utils xvfb libgl1 freeglut3-dev
# - run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev xsettingsd x11-xserver-utils
- 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 }} # If authenticating with SSH deploy key
run: julia --project=docs/ docs/make.jl