-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (42 loc) · 1.24 KB
/
build_docs_release.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
name: Build docs and release to GitHub Pages from master
on:
push:
branches:
- 'master'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/[email protected]
- name: Install Doxygen and Graphviz
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: doxygen graphviz
version: 1.0 # Version of cache to load. Each version will have its own cache.
- name: Build docs
uses: threeal/[email protected]
with:
source-dir: ./
build-dir: build
options: |
BUILD_DOCS=ON
USE_TREZOR_CRYPTO=ON
- name: Upload built html as artifact
id: html_artifact
uses: actions/upload-pages-artifact@v3
with:
path: build/docs/doxygen/html
deploy:
environment:
name: github-pages
url: ${{ steps.html_artifact.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
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: pages_deployment
uses: actions/deploy-pages@v4