eBPF-based security platform
ci: publish the documentation to GitHub Pages
Martynas Pumputis5023e8b94b05
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.ymlindex e1c4bedb..1a47698b 100644--- a/.github/workflows/docs.yml+++ b/.github/workflows/docs.yml@@ -7,6 +7,7 @@ on:tags:- '*'pull_request:+ workflow_dispatch:permissions:contents: read@@ -39,3 +40,27 @@ jobs:with:name: shirudo-html-docspath: Documentation/output/html/++ # main alone is published, and only once the check above passed.+ - name: Upload the site for GitHub Pages+ if: github.ref == 'refs/heads/main'+ uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0+ with:+ path: Documentation/output/html/++ deploy:+ if: github.ref == 'refs/heads/main'+ needs: docs+ runs-on: ubuntu-latest+ permissions:+ contents: read+ pages: write+ id-token: write+ environment:+ name: github-pages+ url: ${{ steps.deployment.outputs.page_url }}++ steps:+ - name: Deploy to GitHub Pages+ id: deployment+ uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1