Skip to content

fix(file): verify cached downloads without BM functions #163

fix(file): verify cached downloads without BM functions

fix(file): verify cached downloads without BM functions #163

Workflow file for this run

name: Generate and Deploy Documentation
on:
push:
branches: [master]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
actions: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: stormbytepp/githubactions/.github/actions/checkout-cached@master
with:
fetch-depth: 0
submodules: false
- name: Install Doxygen and Graphviz
uses: stormbytepp/githubactions/.github/actions/install-cached@master
with:
cache-key: apt-doxygen-graphviz
packages: doxygen graphviz
- name: Generate temporary Doxyfile
run: doxygen -g Doxyfile.tmp
- name: Patch Doxyfile for BuildMaster docs
run: |
set -euo pipefail
sed -i 's|^PROJECT_NAME .*|PROJECT_NAME = "StormByte - Build Master"|' Doxyfile.tmp
sed -i 's|^OUTPUT_DIRECTORY .*|OUTPUT_DIRECTORY = docs|' Doxyfile.tmp
sed -i 's|^INPUT .*|INPUT = ./|' Doxyfile.tmp
sed -i 's|^RECURSIVE .*|RECURSIVE = YES|' Doxyfile.tmp
sed -i 's|^FILE_PATTERNS .*|FILE_PATTERNS = README.md *.md helpers.cmake useful_functions.md|' Doxyfile.tmp
sed -i 's|^EXTENSION_MAPPING .*|EXTENSION_MAPPING = cmake=Python md=Markdown|' Doxyfile.tmp
sed -i 's|^EXTRACT_ALL .*|EXTRACT_ALL = YES|' Doxyfile.tmp
sed -i 's|^MARKDOWN_SUPPORT .*|MARKDOWN_SUPPORT = YES|' Doxyfile.tmp
sed -i 's|^SOURCE_BROWSER .*|SOURCE_BROWSER = YES|' Doxyfile.tmp
sed -i 's|^INLINE_SOURCES .*|INLINE_SOURCES = YES|' Doxyfile.tmp
sed -i 's|^USE_MDFILE_AS_MAINPAGE .*|USE_MDFILE_AS_MAINPAGE = README.md|' Doxyfile.tmp
sed -i 's|^GENERATE_LATEX .*|GENERATE_LATEX = NO|' Doxyfile.tmp
- name: Run Doxygen
run: doxygen Doxyfile.tmp
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/html
- name: Clean temporary Doxyfile
if: always()
run: rm -f Doxyfile.tmp
deploy:
needs: build-docs
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4