From 3f6f4dae3ce7eb85eec641ebbc8089a204b13d1e Mon Sep 17 00:00:00 2001 From: Andrew Coughtrie <24609575+andrewcoughtrie@users.noreply.github.com> Date: Thu, 29 Jan 2026 10:42:44 +0000 Subject: [PATCH 1/2] Only build docs when docs files changed --- .github/workflows/ci.yml | 3 +++ .github/workflows/pr.yml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 381f55787..2f77906e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,9 @@ on: push: branches: - main + paths: + - 'documentation/**' + - '.github/workflows/**' concurrency: group: ${{ github.workflow }}-${{github.ref}} diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 72693292e..82e26b98a 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -10,6 +10,10 @@ on: pull_request: branches: - main + paths: + - 'documentation/**' + - '.github/workflows/**' + concurrency: group: pr-${{github.ref}}-${{github.event.pull_request.number || github.run_number}} From fffbcaa0d98ef79c7e88f69dab5e35c3752fb68c Mon Sep 17 00:00:00 2001 From: Andrew Coughtrie <24609575+andrewcoughtrie@users.noreply.github.com> Date: Fri, 30 Jan 2026 14:43:03 +0000 Subject: [PATCH 2/2] Rename yml files --- .github/workflows/{ci.yml => ci_docs.yml} | 4 ++-- .github/workflows/{pr.yml => pr_docs.yml} | 4 ++-- README.md | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) rename .github/workflows/{ci.yml => ci_docs.yml} (90%) rename .github/workflows/{pr.yml => pr_docs.yml} (90%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci_docs.yml similarity index 90% rename from .github/workflows/ci.yml rename to .github/workflows/ci_docs.yml index 2f77906e9..a580467c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci_docs.yml @@ -4,8 +4,8 @@ # under which the code may be used. # ------------------------------------------------------------------------------ -name: ci -run-name: CI +name: Documentation +run-name: Docs Build and Deploy - ${{ github.ref_name }} on: push: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr_docs.yml similarity index 90% rename from .github/workflows/pr.yml rename to .github/workflows/pr_docs.yml index 82e26b98a..ab32daaf9 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr_docs.yml @@ -4,8 +4,8 @@ # under which the code may be used. # ------------------------------------------------------------------------------ -name: pr -run-name: Pull Request ${{github.event.pull_request.number}} +name: Docs Build for Pull Requests +run-name: Docs build on: pull_request: branches: diff --git a/README.md b/README.md index 604725a78..9272533d6 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,12 @@ Welcome to LFRic Core! LFRic Core provides the underlying infrastructure for the Momentum® Atmosphere model and associated applications. -| | | -|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------| -|:repeat: CI|[![Doc Deploy](https://github.com/MetOffice/lfric_core/actions/workflows/ci.yml/badge.svg)](https://github.com/MetOffice/lfric_core/actions/workflows/ci.yml)| -|:speech_balloon: Community|[![Static Badge](https://img.shields.io/badge/GitHub-discussions-gold)](https://github.com/MetOffice/simulation-systems/discussions/categories/lfric)| -|:package: Repo |[![GitHub License](https://img.shields.io/github/license/metoffice/lfric_core)](https://github.com/MetOffice/lfric_core?tab=BSD-3-Clause-1-ov-file#readme) [![GitHub Release](https://img.shields.io/github/v/release/metoffice/lfric_core?color=purple)](https://github.com/MetOffice/lfric_core/releases) ![GitHub commits since latest release](https://img.shields.io/github/commits-since/metoffice/lfric_core/latest) | -| | | +| | | +|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +|:repeat: CI| [![Documentation](https://github.com/MetOffice/lfric_core/actions/workflows/ci_docs.yml/badge.svg)](https://github.com/MetOffice/lfric_core/actions/workflows/ci_docs.yml) | +|:speech_balloon: Community| [![Static Badge](https://img.shields.io/badge/GitHub-discussions-gold)](https://github.com/MetOffice/simulation-systems/discussions/categories/lfric) | +|:package: Repo | [![GitHub License](https://img.shields.io/github/license/metoffice/lfric_core)](https://github.com/MetOffice/lfric_core?tab=BSD-3-Clause-1-ov-file#readme) [![GitHub Release](https://img.shields.io/github/v/release/metoffice/lfric_core?color=purple)](https://github.com/MetOffice/lfric_core/releases) ![GitHub commits since latest release](https://img.shields.io/github/commits-since/metoffice/lfric_core/latest) | +| | | ## Getting Started