diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d7a89e9..4e8b571 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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