and again #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |