Skip to content

Commit 01f0577

Browse files
committed
more cleanup
1 parent 28239bd commit 01f0577

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

.github/workflows/Documenter.yml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,24 @@
1-
# Sample workflow for building and deploying a VitePress site to GitHub Pages
2-
#
3-
name: Documenter
1+
name: Documentation
42

53
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.
84
push:
95
branches:
106
- main
11-
tags: ['*']
7+
tags: '*'
128
pull_request:
139

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
1811
permissions:
1912
contents: write
2013
pages: write
2114
id-token: write
2215
statuses: write
2316

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.
2617
concurrency:
2718
group: pages
28-
cancel-in-progress: false
19+
cancel-in-progress: true
2920

3021
jobs:
31-
# Build job
3222
build:
3323
runs-on: ubuntu-latest
3424
env:
@@ -40,16 +30,16 @@ jobs:
4030
uses: julia-actions/setup-julia@v2
4131
- name: Pull Julia cache
4232
uses: julia-actions/cache@v2
43-
- name: Install documentation dependencies # for GLMakie plots
33+
- name: Install GLMakie dependencies
4434
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
45-
- name: Install documentation dependencies
35+
- name: Install Julia dependencies
4636
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()'
4737
- name: Build and deploy
4838
env:
4939
RASTERDATASOURCES_PATH: "."
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
51-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
52-
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"
5343
JULIA_DEBUG: "Documenter"
5444
DATADEPS_ALWAYS_ACCEPT: true
5545
run: |

0 commit comments

Comments
 (0)