Skip to content

Commit

Permalink
CICD: add documentation pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickm663 authored Jan 22, 2024
1 parent 1458400 commit 8ce11cc
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Source: https://documenter.juliadocs.org/stable/man/hosting/

name: Documentation

on:
push:
branches:
- main
tags: '*'
pull_request:

jobs:
build:
permissions:
contents: write
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
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.ACCESS_TOKEN }} # If authenticating with GitHub Actions token
run: julia --project=docs/ docs/make.jl

0 comments on commit 8ce11cc

Please sign in to comment.