diff --git a/.github/workflows/ci.yml b/.github/workflows/ci_docs.yml similarity index 81% rename from .github/workflows/ci.yml rename to .github/workflows/ci_docs.yml index 381f55787..a580467c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci_docs.yml @@ -4,13 +4,16 @@ # 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: branches: - main + paths: + - 'documentation/**' + - '.github/workflows/**' concurrency: group: ${{ github.workflow }}-${{github.ref}} diff --git a/.github/workflows/pr.yml b/.github/workflows/pr_docs.yml similarity index 82% rename from .github/workflows/pr.yml rename to .github/workflows/pr_docs.yml index 72693292e..ab32daaf9 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr_docs.yml @@ -4,12 +4,16 @@ # 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: - main + paths: + - 'documentation/**' + - '.github/workflows/**' + concurrency: group: pr-${{github.ref}}-${{github.event.pull_request.number || github.run_number}} 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