Skip to content

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

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

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

Workflow file for this run

name: build
on:
pull_request:
push:
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: Checkout
uses: actions/checkout@v4
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Upload artifact
if: github.event_name == 'push'
uses: actions/upload-pages-artifact@v2
with:
path: result/share/doc/html/
documentation:
if: startsWith(github.ref, 'refs/tags/')
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
runs-on: ubuntu-latest
needs: build
steps:
- name: Publish Doxygen documentation on GitHub Pages
id: deployment
uses: actions/deploy-pages@v2