From e427a3fbbfc4365fb38b99e8b56416e859ec460b Mon Sep 17 00:00:00 2001 From: Matteo Date: Thu, 9 Apr 2026 08:43:36 +0200 Subject: [PATCH] chore: generate web docs using github actions --- .github/workflows/documentation.yml | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/documentation.yml diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 00000000000..5b6095f04f4 --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,44 @@ +name: documentation + +on: + push: + branches: + - master + pull_request: + +permissions: + contents: write + +jobs: + documentation: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: setup go + uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 + with: + go-version: "1.25" + + - name: docs-generate + run: make docs-generate + + - name: docs-copy + run: make docs-copy + + - name: docs-hugo-drone-prep + run: make docs-hugo-drone-prep + + - name: docs-build + run: cd hugo && hugo + + - name: publish + if: github.event_name != 'pull_request' + uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: docs/hugo/content/web + publish_branch: docs + commit_message: "Automated documentation update [skip ci]" + keep_files: false