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 b727600
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,25 @@ jobs:
- 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

0 comments on commit b727600

Please sign in to comment.