diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 000000000..f1dfcd26f --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,40 @@ +# See https://docs.github.com/en/actions. +name: Build + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + name: Build + runs-on: ubuntu-latest + + steps: + # See https://github.com/actions/checkout. + - name: Checkout doc-pt_br + uses: actions/checkout@v3 + with: + path: pt_br + + - name: Checkout doc-en + uses: actions/checkout@v3 + with: + repository: php/doc-en + path: en + + - name: Checkout doc-base + uses: actions/checkout@v3 + with: + repository: php/doc-base + path: doc-base + + - name: Quality Assurance scripts + run: php doc-base/scripts/qa/extensions.xml.php --check + + - name: Build documentation for pt_br + run: php doc-base/configure.php --disable-libxml-check --enable-xml-details --redirect-stderr-to-stdout --with-lang=pt_br diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml deleted file mode 100644 index b6a350fef..000000000 --- a/.github/workflows/integrate.yaml +++ /dev/null @@ -1,46 +0,0 @@ -# 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: - - "pt_br" - - 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: "Quality Assurance scripts" - run: "php8.0 doc-base/scripts/qa/extensions.xml.php --check" - - - 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 }}" diff --git a/README.md b/README.md index c4867aaca..39e7a1e81 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Tradução brasileira da documentação do PHP +[![Build](https://github.com/php/doc-pt_br/actions/workflows/build.yaml/badge.svg?branch=master)](https://github.com/php/doc-pt_br/actions/workflows/build.yaml) + Veja como participar [na nossa wiki](https://github.com/php/doc-pt_br/wiki). Pequenas correções e sugestões, podem ser feitas por *issues* ou pelo processo convencional de *pull requests* pelo GitHub mesmo. - -![Documentation build status](https://github.com/php/doc-pt_br/actions/workflows/integrate.yaml/badge.svg)