Skip to content

Commit 64bf020

Browse files
committed
set up Github Action CI
1 parent ac0fb75 commit 64bf020

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/docs.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Documentation
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- 'master'
8+
- 'release-'
9+
tags: '*'
10+
release:
11+
types: published
12+
13+
jobs:
14+
build_html:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Install dependencies
19+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
20+
- name: Build and deploy
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
24+
run: |
25+
julia -e 'include("contrib/build_sysimg.jl"); build_sysimg(force=true)'
26+
julia --project=doc/ doc/make.jl deploy
27+
# build_pdf:
28+
# runs-on: ubuntu-latest
29+
# steps:
30+
# - uses: actions/checkout@v2
31+
# - name: Build and deploy
32+
# uses: docker://tianjun2018/documenter-latex:latest
33+
# run: |
34+
# apt-get update -q && apt-get install python3-pip -yq
35+
# pip3 install jill && jill install --confirm
36+
# julia -e 'using InteractiveUtils; versioninfo()'
37+
# ls -al
38+
# julia --project=doc/ -e 'using Pkg; Pkg.develop(PacakageSpec(path=pwd())); Pkg.instantiate()'
39+
# julia --project=doc/ doc/make.jl pdf texplatform=native
40+

0 commit comments

Comments
 (0)