-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (45 loc) · 1.3 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Docs
on:
push:
branches: [main]
paths-ignore: [".teamcity/**"]
pull_request:
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
publish:
name: Docs
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Ribasim-NL
uses: actions/checkout@v4
with:
path: Ribasim-NL
# Ribasim needs to be checked out next to this repo even for the prod environment
- name: Checkout Ribasim
uses: actions/checkout@v4
with:
repository: Deltares/Ribasim
path: Ribasim
- uses: prefix-dev/[email protected]
with:
manifest-path: Ribasim-NL/pixi.toml
pixi-version: "latest"
- name: Check Quarto installation and all engines
working-directory: Ribasim-NL
run: pixi run quarto-check
- name: Render Quarto Project
working-directory: Ribasim-NL
run: pixi run quarto-render
- name: Publish Quarto Project
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: Ribasim-NL/docs/_site
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}