Skip to content

Commit

Permalink
update docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MasonProtter committed Feb 1, 2024
1 parent 605069d commit 0dc6dd1
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,25 @@ name: Documentation
on:
push:
branches:
- master
- actions/trigger/docs
- master # update to match your development branch (master, main, dev, trunk, ...)
tags: '*'
pull_request:

jobs:
Documenter:
build:
permissions:
contents: write
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: 1.4
- run: julia -e 'using Pkg; pkg"add [email protected]"'
- run: julia -e 'using Run; Run.prepare_docs()'
- run: julia -e 'using Run; Run.docs()'
version: '1.10'
- 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 }}
DOCUMENTER_KEY: ${{ secrets.SSH_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
run: julia --project=docs/ docs/make.jl

0 comments on commit 0dc6dd1

Please sign in to comment.