From 818104861175a63d42b45300eed3ce1603436fee Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Sat, 10 Feb 2024 20:57:19 +1300 Subject: [PATCH] CICD: Add GitHub Action File for Documentation Processing. Also add an appropriate branch condition to the actions building docker images. Signed-off-by: Michael Keller --- .github/workflows/android-dockerimage.yml | 2 ++ .github/workflows/documentation.yml | 33 +++++++++++++++++++ .github/workflows/windows-mxe-dockerimage.yml | 2 ++ Documentation/mobile-manual-v3.html.git | 28 ++++++++++------ 4 files changed, 55 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/documentation.yml diff --git a/.github/workflows/android-dockerimage.yml b/.github/workflows/android-dockerimage.yml index 9f4dd28bd..6827ef8a8 100644 --- a/.github/workflows/android-dockerimage.yml +++ b/.github/workflows/android-dockerimage.yml @@ -2,6 +2,8 @@ name: Android Docker Image CI on: push: + branches: + - master paths: - scripts/docker/android-build-container/** - .github/workflows/android-dockerimage.yml diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 000000000..b9014b820 --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,33 @@ +name: Documentation + +on: + push: + branches: + - master + paths: + - Documentation + - .github/workflows/documentation.yml + pull_request: + branches: + - master + paths: + - Documentation + - .github/workflows/documentation.yml + +jobs: + documentation: + runs-on: ubuntu-22.04 + + steps: + - name: Install Packages + run: | + sudo apt-get -y update + sudo apt-get -y install asciidoc docbook-xml w3m + + - name: Checkout Sources + uses: actions/checkout@v4 + + - name: Process the Documentation + id: process_documentation + working-directory: Documentation + run: make diff --git a/.github/workflows/windows-mxe-dockerimage.yml b/.github/workflows/windows-mxe-dockerimage.yml index 9b6d00144..cbaf7472e 100644 --- a/.github/workflows/windows-mxe-dockerimage.yml +++ b/.github/workflows/windows-mxe-dockerimage.yml @@ -2,6 +2,8 @@ name: Windows (MXE) Docker Image on: push: + branches: + - master paths: - scripts/docker/mxe-build-container/** - .github/workflows/windows-mxe-dockerimage.yml diff --git a/Documentation/mobile-manual-v3.html.git b/Documentation/mobile-manual-v3.html.git index e6de2ce14..2c8371183 100644 --- a/Documentation/mobile-manual-v3.html.git +++ b/Documentation/mobile-manual-v3.html.git @@ -4,7 +4,7 @@ - +