From ab529d30f7f3ad0d84152d611c2d91eaaa332cf5 Mon Sep 17 00:00:00 2001 From: Sebastian Fischer Date: Sun, 19 May 2024 19:42:35 +0200 Subject: [PATCH] Add github pages rendering --- .github/workflows/pages.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/pages.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..430930f --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,36 @@ +name: Build and Commit Github-Page + +on: + workflow_dispatch: + + push: + branches: [ develop, main ] + +permissions: + contents: write + +jobs: + build-and-commit-github-page: + runs-on: ubuntu-latest + concurrency: ci-${{ github.ref }} + + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v4 + + - name: Build documentation + run: | + docker run \ + --rm --user $(id -u) \ + -v ${PWD}:/project \ + ghcr.io/typo3-documentation/render-guides:latest render Documentation + echo '' > Documentation-GENERATED-temp/index.html + touch Documentation-GENERATED-temp/.nojekyll + + - name: Deploy to GitHub Pages 🚀 + uses: JamesIves/github-pages-deploy-action@v4.6.0 + with: + branch: gh-pages + folder: Documentation-GENERATED-temp + target-folder: / + clean: true