|
1 | | -# Sample workflow for building and deploying a VitePress site to GitHub Pages |
2 | | -# |
3 | | -name: Documenter |
| 1 | +name: Documentation |
4 | 2 |
|
5 | 3 | on: |
6 | | - # Runs on pushes targeting the `main` branch. Change this to `master` if you're |
7 | | - # using the `master` branch as the default branch. |
8 | 4 | push: |
9 | 5 | branches: |
10 | 6 | - main |
11 | | - tags: ['*'] |
| 7 | + tags: '*' |
12 | 8 | pull_request: |
13 | 9 |
|
14 | | - # Allows you to run this workflow manually from the Actions tab |
15 | | - workflow_dispatch: |
16 | | - |
17 | | -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages |
| 10 | +# Sets permissions of the GITHUB_TOKEN |
18 | 11 | permissions: |
19 | 12 | contents: write |
20 | 13 | pages: write |
21 | 14 | id-token: write |
22 | 15 | statuses: write |
23 | 16 |
|
24 | | -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. |
25 | | -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. |
26 | 17 | concurrency: |
27 | 18 | group: pages |
28 | | - cancel-in-progress: false |
| 19 | + cancel-in-progress: true |
29 | 20 |
|
30 | 21 | jobs: |
31 | | - # Build job |
32 | 22 | build: |
33 | 23 | runs-on: ubuntu-latest |
| 24 | + env: |
| 25 | + DISPLAY: ':0' |
34 | 26 | steps: |
35 | 27 | - name: Checkout |
36 | 28 | uses: actions/checkout@v4 |
37 | 29 | - name: Setup Julia |
38 | | - uses: julia-actions/setup-julia@v1 |
| 30 | + uses: julia-actions/setup-julia@v2 |
39 | 31 | - name: Pull Julia cache |
40 | | - uses: julia-actions/cache@v1 |
41 | | - - name: Install documentation dependencies |
42 | | - run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev |
43 | | - - name: Install custom documentation dependencies |
44 | | - run: DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=docs -e 'using Pkg; pkg"dev ."; Pkg.instantiate(); Pkg.precompile(); Pkg.status()' |
| 32 | + uses: julia-actions/cache@v2 |
| 33 | + - name: Install GLMakie dependencies |
| 34 | + run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev |
| 35 | + - name: Install Julia dependencies |
| 36 | + run: DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=docs -e 'using Pkg; Pkg.Registry.update(); pkg"dev ."; Pkg.instantiate(); Pkg.precompile(); Pkg.status()' |
45 | 37 | - name: Build and deploy |
46 | 38 | env: |
47 | 39 | RASTERDATASOURCES_PATH: "." |
48 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token |
49 | | - DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key |
50 | | - GKSwstype: "100" # https://discourse.julialang.org/t/generation-of-documentation-fails-qt-qpa-xcb-could-not-connect-to-display/60988 |
| 40 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 41 | + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} |
| 42 | + GKSwstype: "100" |
51 | 43 | JULIA_DEBUG: "Documenter" |
52 | 44 | DATADEPS_ALWAYS_ACCEPT: true |
53 | 45 | run: | |
|
0 commit comments