File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments