-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (32 loc) · 995 Bytes
/
docs.yml
File metadata and controls
34 lines (32 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Documentation
on:
push:
branches:
- main # update to match your development branch (master, main, dev, trunk, ...)
tags: '*'
pull_request:
jobs:
build:
runs-on:
labels: cuda
strategy:
matrix:
julia-version: ['1']
steps:
- uses: actions/checkout@v4
- uses: julia-actions/install-juliaup@v2
with:
channel: ${{ matrix.julia-version }}
- name: Cache Julia artifacts
uses: actions/cache@v3
- name: Instantiate the dependencies
shell: julia --project=docs/ --color=yes {0}
run: |
using Pkg;
Pkg.Registry.update();
Pkg.instantiate();
- name: Build and deploy documentation
env:
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/ --color=yes docs/make.jl