diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d7a89e9..bdd21fc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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@v5 + + - name: Upload artifact + if: github.event_name == 'push' + uses: actions/upload-pages-artifact@v3 + 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 \ No newline at end of file