mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 08:28:54 +00:00
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
# 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:
|
|
- "en"
|
|
|
|
steps:
|
|
- name: "Checkout php/doc-${{ matrix.language }}"
|
|
uses: "actions/checkout@v3"
|
|
with:
|
|
path: "${{ matrix.language }}"
|
|
repository: "php/doc-${{ matrix.language }}"
|
|
|
|
- name: "Checkout php/doc-en as fallback"
|
|
if: "matrix.language != 'en'"
|
|
uses: "actions/checkout@v3"
|
|
with:
|
|
path: "en"
|
|
repository: "php/doc-en"
|
|
|
|
- name: "Checkout php/doc-base"
|
|
uses: "actions/checkout@v3"
|
|
with:
|
|
path: "doc-base"
|
|
repository: "php/doc-base"
|
|
|
|
- name: "Quality Assurance scripts"
|
|
run: |
|
|
php8.0 doc-base/scripts/qa/extensions.xml.php --check
|
|
php8.0 doc-base/scripts/qa/section-order.php
|
|
|
|
- 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 }}"
|
|
|
|
- name: "Upload .manual.xml"
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: .manual.xml
|
|
path: doc-base/.manual.xml
|