Skip to content

LibJWT Documentation #4

LibJWT Documentation

LibJWT Documentation #4

Workflow file for this run

name: LibJWT Documentation
on:
workflow_dispatch:
push:
branches:
- "master"
tags:
- v*
paths:
- include/jwt.h
- doxygen/**
- cmake/LibJWTDoxyfile.cmake
jobs:
build:
if: ${{github.ref == 'refs/heads/master'}}
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0
- uses: ConorMacBride/install-package@v1
with:
brew: gnutls openssl@3 jansson pkgconf cmake doxygen graphviz
- name: Build Head docs
run: |
set -e
cmake -B build
make -C build doxygen-doc
mkdir -p gh-pages
mv build/doxygen-doc/html gh-pages/HEAD
rm -rf build
- name: Build Latest tag docs
run: |
set -e
git checkout $(git describe --tags --abbrev=0)
cmake -B build
make -C build doxygen-doc
mv build/doxygen-doc/html/* gh-pages/
- name: Upload pages
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: gh-pages/
deploy:
permissions:
id-token: write
pages: write
deployments: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4