From 326dd3b35ee6227b795183c88aba4998287a6183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Wed, 30 Dec 2020 23:16:29 +0100 Subject: [PATCH] Enhancement: Build documentation on GitHub Actions --- .github/workflows/integrate.yaml | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/integrate.yaml diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml new file mode 100644 index 000000000..5da570e62 --- /dev/null +++ b/.github/workflows/integrate.yaml @@ -0,0 +1,43 @@ +# https://docs.github.com/en/actions + +name: "Integrate" + +on: + pull_request: null + push: + branches: + - "master" + +jobs: + build: + name: "Build" + + runs-on: "ubuntu-latest" + + strategy: + matrix: + language: + - "de" + + steps: + - name: "Checkout php/doc-${{ matrix.language }}" + uses: "actions/checkout@v2" + with: + path: "${{ matrix.language }}" + repository: "php/doc-${{ matrix.language }}" + + - name: "Checkout php/doc-en as fallback" + if: "matrix.language != 'en'" + uses: "actions/checkout@v2" + with: + path: "en" + repository: "php/doc-en" + + - name: "Checkout php/doc-base" + uses: "actions/checkout@v2" + with: + path: "doc-base" + repository: "php/doc-base" + + - name: "Build documentation for ${{ matrix.language }}" + run: "php8.0 doc-base/configure.php --disable-libxml-check --enable-xml-details --redirect-stderr-to-stdout --with-lang=${{ matrix.language }}"