Merge pull request #369 from chrisbrahms/version #492
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 ] | |
tags: '*' | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: julia-actions/setup-julia@latest | |
with: | |
version: ^1.7.0-rc1 | |
- name: Install dependencies and build package | |
env: | |
PYTHON: # remove PYTHON env variable to make sure packages are installed | |
uses: julia-actions/julia-buildpkg@v1 | |
- name: Instantiate documentation pkg | |
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 |