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: | |
release: | |
push: | |
branches: | |
- main | |
tags: '*' | |
pull_request: | |
jobs: | |
build: | |
name: "Build the documentation" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: julia-actions/setup-julia@latest | |
with: | |
version: '1.9' | |
- name: Install SINs.jl | |
run: julia --project=. -e 'using Pkg; Pkg.add(url="https://github.com/PoisotLab/SpeciesInteractionNetworks.jl"); Pkg.instantiate()' | |
- uses: julia-actions/julia-buildpkg@latest | |
- name: Install dependencies | |
run: julia --project=docs/ -e 'using Pkg; Pkg.add(url="https://github.com/PoisotLab/SpeciesInteractionNetworks.jl"); Pkg.instantiate()' | |
- name: Build and deploy | |
env: | |
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} | |
run: julia --project=docs/ docs/make.jl |