-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (44 loc) · 1.4 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
---
name: Docs
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build_images:
uses: ./.github/workflows/build_images.yml
docs:
runs-on: ubuntu-22.04
needs: [build_images]
container:
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
image: ${{ needs.build_images.outputs.image_tag }}_gcc
steps:
- name: build_docs
run: |
cmake -GNinja -B build -S /src
cmake --build build --target docs
- name: upload
uses: actions/upload-pages-artifact@v2
with:
path: build/docs/sphinx_html/
deploy_docs:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-22.04
needs: [docs]
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2