Merge pull request #28 from tropicsquare/develop #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |