Update Documentation.yml #17
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 | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Julia | |
uses: julia-actions/setup-julia@v1 | |
with: | |
julia-version: '1.9' | |
- name: Install dependencies | |
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' | |
- name: Build documentation | |
run: julia docs/make.jl | |
- name: Upload documentation | |
uses: actions/upload-artifact@v2 | |
with: | |
name: github-pages | |
path: docs/build | |
- name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v4 | |
with: | |
token: ${{ secrets.DOCUMENTER_KEY }} |