Update Documentation.yml #16
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 -e 'using Pkg; Pkg.add(url="https://github.com/cbernalz/UCIWWEIHR.jl.git")' | |
julia -e 'using Pkg; 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 }} |