Skip to content

👷 (doxygen): Upload Doxygen doc as artifact then publish it on GitHub… #41

👷 (doxygen): Upload Doxygen doc as artifact then publish it on GitHub…

👷 (doxygen): Upload Doxygen doc as artifact then publish it on GitHub… #41

Workflow file for this run

name: build
on:
pull_request:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
- run: nix build
- run: nix flake check
- name: Setup Pages
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
id: pages
uses: actions/configure-pages@v5
- name: Upload artifact
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
uses: actions/upload-pages-artifact@v3
with:
path: result/share/doc/html/
documentation:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
needs: build
steps:
- name: Publish Doxygen documentation on GitHub Pages
id: deployment
uses: actions/deploy-pages@v4