From e9f2e24bb5edfd6f5cef9b7d798ae386f75e675e Mon Sep 17 00:00:00 2001 From: Florian Albrechtskirchinger Date: Thu, 4 Aug 2022 17:22:37 +0200 Subject: [PATCH 1/3] Only publish documentation when changed --- .github/workflows/publish_documentation.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish_documentation.yml b/.github/workflows/publish_documentation.yml index c06d535f0a..34eff8f34a 100644 --- a/.github/workflows/publish_documentation.yml +++ b/.github/workflows/publish_documentation.yml @@ -5,6 +5,9 @@ on: push: branches: - develop + paths: + - docs/mkdocs/** + - docs/examples/** # we don't want to have concurrent jobs, and we don't want to cancel running jobs to avoid broken publications concurrency: From 0bf7dba38715f35b6d1a012fa1dbe6527cf13558 Mon Sep 17 00:00:00 2001 From: Florian Albrechtskirchinger Date: Thu, 4 Aug 2022 17:27:47 +0200 Subject: [PATCH 2/3] Enable manual publishing of the documentation --- .github/workflows/publish_documentation.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish_documentation.yml b/.github/workflows/publish_documentation.yml index 34eff8f34a..536cc8bfb4 100644 --- a/.github/workflows/publish_documentation.yml +++ b/.github/workflows/publish_documentation.yml @@ -8,6 +8,7 @@ on: paths: - docs/mkdocs/** - docs/examples/** + workflow_dispatch: # we don't want to have concurrent jobs, and we don't want to cancel running jobs to avoid broken publications concurrency: From 6cd038e6bc6e94f4412c7e55210d801f2ed6bf1a Mon Sep 17 00:00:00 2001 From: Florian Albrechtskirchinger Date: Thu, 4 Aug 2022 17:29:41 +0200 Subject: [PATCH 3/3] Don't try to publish documentation from forks --- .github/workflows/publish_documentation.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish_documentation.yml b/.github/workflows/publish_documentation.yml index 536cc8bfb4..d0fb8f436b 100644 --- a/.github/workflows/publish_documentation.yml +++ b/.github/workflows/publish_documentation.yml @@ -17,6 +17,7 @@ concurrency: jobs: publish_documentation: + if: github.repository == 'nlohmann/json' runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3