com doc/ja: Integrate GitHub Actions in docs-ja, too.: .github/workflows/integrate.yaml

[email protected] (Yoshinari Takaoka) Sat, 09 Jan 2021 02:13:20 +0000
Newsgroups php.doc.ja
Message-ID <[email protected]>
Commit:    923133c40a28e77068c40c9459b8c5b5c84712d7
Author:    Yoshinari Takaoka <[email protected]>         Sat, 9 Jan 2021 11:13:20 +0900
Parents:   e5621ffea4a58829f457e21466739a45b117588c
Branches:  master

Link:       http://git.php.net/?p=doc/ja.git;a=commitdiff;h=923133c40a28e77068c40c9459b8c5b5c84712d7

Log:
Integrate GitHub Actions in docs-ja, too.

Changed paths:
  A  .github/workflows/integrate.yaml


Diff:
diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml
new file mode 100644
index 0000000000..14dfb38576
--- /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:
+          - "ja"
+
+    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 }}"