Skip to content

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

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

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

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: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Upload artifact
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: result/share/doc/html/
documentation:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') && github.ref == 'refs/heads/main'
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@v2