Adding Documenter.jl documentation #6
Workflow file for this run
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 | |
on: | |
push: | |
branches: | |
- master | |
- new-doc # TODO: Remove before merging into master! | |
tags: '*' | |
pull_request: | |
jobs: | |
build: | |
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@v3 | |
- name: Setup OpenModelica | |
uses: AnHeuermann/[email protected] | |
with: | |
version: 'nightly' | |
packages: | | |
'omc' | |
- 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 | |
run: julia --project=docs/ docs/make.jl |