-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (53 loc) · 1.4 KB
/
publish_docs.yaml
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
51
52
53
54
55
name: Publish content to GitHub pages
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency: publish-docs
jobs:
build-documentation:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
permissions:
pages: write
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: true
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true
version: '1.6.31'
- name: Render documentation pages
run: quarto render --output-dir _build
- name: Setup GitHub pages
uses: actions/configure-pages@v5
- name: Upload build artifacts
uses: actions/upload-pages-artifact@v3
with:
path: "docs/_build"
- name: Upload build folder
uses: actions/upload-artifact@v4
with:
name: build-folder
path: "docs/_build"
deploy-documentation-ghpages:
runs-on: ubuntu-latest
needs: build-documentation
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub pages
id: deployment
uses: actions/deploy-pages@v4