|
4 | 4 | push:
|
5 | 5 | branches:
|
6 | 6 | - master
|
| 7 | + pull_request: |
7 | 8 | workflow_dispatch:
|
8 | 9 |
|
| 10 | +concurrency: |
| 11 | + # Skip intermediate builds: always. |
| 12 | + # Cancel intermediate builds: only if it is a pull request build. |
| 13 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 14 | + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} |
| 15 | + |
9 | 16 | jobs:
|
10 | 17 | HTML:
|
11 | 18 | runs-on: ubuntu-latest
|
| 19 | + permissions: |
| 20 | + actions: write # needed to allow julia-actions/cache to proactively delete old caches that it has created |
| 21 | + contents: write |
| 22 | + statuses: write |
12 | 23 | steps:
|
13 |
| - - uses: actions/checkout@v3 |
14 |
| - - uses: julia-actions/setup-julia@v1 |
| 24 | + - uses: actions/checkout@v4 |
| 25 | + - uses: julia-actions/setup-julia@v2 |
15 | 26 | with:
|
16 |
| - version: "1.8" |
| 27 | + version: '1.8' |
| 28 | + show-versioninfo: true |
| 29 | + - uses: julia-actions/cache@v2 |
17 | 30 | - name: Install dependencies
|
| 31 | + shell: julia --project=docs --color=yes {0} |
18 | 32 | run: |
|
19 |
| - julia --project=docs/ -e ' |
20 |
| - using Pkg |
21 |
| - Pkg.develop(PackageSpec(path=pwd())) |
22 |
| - Pkg.instantiate()' |
| 33 | + using Pkg |
| 34 | + Pkg.develop(PackageSpec(path=pwd())) |
| 35 | + Pkg.instantiate() |
23 | 36 | - name: Build and deploy
|
24 | 37 | env:
|
25 | 38 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
26 | 39 | DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
|
27 | 40 | run: |
|
28 | 41 | julia -e 'include("contrib/build_sysimg.jl"); build_sysimg(force=true)'
|
29 | 42 | julia --project=doc/ doc/make.jl deploy
|
30 |
| - PDF: |
31 |
| - runs-on: ubuntu-latest |
32 |
| - steps: |
33 |
| - - uses: actions/checkout@v2 |
34 |
| - - name: Build and deploy |
35 |
| - timeout-minutes: 90 |
36 |
| - |
37 |
| - with: |
38 |
| - project_dir: 'doc' |
39 |
| - format: pdf # trigger the pdf compilation in our doc/make.jl |
40 |
| - - name: upload complied PDF file |
41 |
| - uses: actions/upload-artifact@v2 |
| 43 | + - name: Upload HTML |
| 44 | + uses: actions/upload-artifact@v4 |
42 | 45 | with:
|
43 |
| - name: compiled contents |
44 |
| - path: doc/build/*.pdf |
| 46 | + name: html-site |
| 47 | + path: doc/build/ |
0 commit comments