Skip to content

Commit

Permalink
👷 (doxygen): Upload Doxygen doc as artifact then publish it on GitHub…
Browse files Browse the repository at this point in the history
… Pages
  • Loading branch information
theobori committed Sep 5, 2024
1 parent eeedacb commit 77bcf5b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,26 @@ jobs:
- uses: cachix/install-nix-action@v27
- run: nix build
- run: nix flake check

- 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

0 comments on commit 77bcf5b

Please sign in to comment.