Skip to content

Commit c50f06c

Browse files
committed
Add documentation github workflow
1 parent 1d3f93d commit c50f06c

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build documentation
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
permissions:
11+
id-token: write
12+
pages: write
13+
contents: write
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
with:
21+
submodules: 'recursive'
22+
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
23+
- name: Setup Julia
24+
uses: julia-actions/setup-julia@v1
25+
with:
26+
version: "1.11"
27+
- name: Build Julia documentation and deploy
28+
run: |
29+
touch src/Constants.jl
30+
julia --project=docs -e '
31+
using Pkg
32+
Pkg.develop(PackageSpec(path=pwd()))
33+
Pkg.instantiate()
34+
'
35+
julia --project=docs docs/make.jl
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
38+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key

0 commit comments

Comments
 (0)