From 26fe208617c4e55e1af5b5de427ebc612ed2e4c9 Mon Sep 17 00:00:00 2001 From: Evgeniy Dikevich Date: Thu, 6 Nov 2025 11:52:23 +0100 Subject: [PATCH 1/5] feat(docs): Use forge to release docs Signed-off-by: Evgeniy Dikevich --- .github/workflows/ci.yml | 4 ++-- .github/workflows/generate-allure-report.yml | 8 ++++---- blueprint.cue | 4 ++++ docs/blueprint.cue | 18 +++++++++++++++++- 4 files changed, 27 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd537c46290..5afe2c28674 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,9 +18,9 @@ permissions: jobs: ci: if: ${{ !github.event.pull_request.draft }} - uses: input-output-hk/catalyst-forge/.github/workflows/ci.yml@ci/v1.8.1 + uses: input-output-hk/catalyst-forge/.github/workflows/ci.yml@ci/v1.9.0 with: - forge_version: 0.19.1 + forge_version: 0.20.0 test_reporting: if: ${{ !github.event.pull_request.draft }} diff --git a/.github/workflows/generate-allure-report.yml b/.github/workflows/generate-allure-report.yml index 19ec070a231..9f76d6d83a4 100644 --- a/.github/workflows/generate-allure-report.yml +++ b/.github/workflows/generate-allure-report.yml @@ -27,16 +27,16 @@ jobs: - uses: actions/checkout@v4 - name: Install Forge - uses: input-output-hk/catalyst-forge/actions/install@ci/v1.8.1 + uses: input-output-hk/catalyst-forge/actions/install@ci/v1.9.0 with: - version: 0.19.1 + version: 0.20.0 if: always() - name: Setup CI - uses: input-output-hk/catalyst-forge/actions/setup@ci/v1.8.1 + uses: input-output-hk/catalyst-forge/actions/setup@ci/v1.9.0 - name: Get catalyst libs unit test report - uses: input-output-hk/catalyst-forge/actions/run@ci/v1.8.1 + uses: input-output-hk/catalyst-forge/actions/run@ci/v1.9.0 if: always() continue-on-error: true with: diff --git a/blueprint.cue b/blueprint.cue index f33388faeef..593cea9423f 100644 --- a/blueprint.cue +++ b/blueprint.cue @@ -9,6 +9,10 @@ global: { registries: [ ci.providers.aws.ecr.registry, ] + release: docs: { + bucket: "docs.dev.projectcatalyst.io" + url: "https://docs.dev.projectcatalyst.io/" + } providers: { aws: { region: "eu-central-1" diff --git a/docs/blueprint.cue b/docs/blueprint.cue index fba451cb220..04acef1858b 100644 --- a/docs/blueprint.cue +++ b/docs/blueprint.cue @@ -1,2 +1,18 @@ version: "1.0.0" -project: name: "libs-docs" +project: +{ + name: "libs-docs" + + release: { + docs: { + on: { + merge: {} + pr: {} + } + + config: { + name: "libs" + } + } + } +} From 1522504801b76815b8fb897836980390e5dc692e Mon Sep 17 00:00:00 2001 From: Evgeniy Dikevich Date: Thu, 6 Nov 2025 12:01:56 +0100 Subject: [PATCH 2/5] fix cspell Signed-off-by: Evgeniy Dikevich --- .config/dictionaries/project.dic | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/dictionaries/project.dic b/.config/dictionaries/project.dic index 61470dcae13..ece094a570b 100644 --- a/.config/dictionaries/project.dic +++ b/.config/dictionaries/project.dic @@ -225,6 +225,7 @@ preopen preopened preopens preprod +projectcatalyst Prokhorenko proptest psql From 6689f5752110933ec13de1e2d9923731e088515b Mon Sep 17 00:00:00 2001 From: Evgeniy Dikevich Date: Wed, 12 Nov 2025 15:52:24 +0100 Subject: [PATCH 3/5] feat: Skip CI when only docs changed Signed-off-by: Evgeniy Dikevich --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5afe2c28674..6f4d3a34a13 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,13 +16,38 @@ permissions: pull-requests: write jobs: + paths-filter: + runs-on: ubuntu-latest + outputs: + docs: ${{ steps.filter.outputs.docs }} + not-only-docs: ${{ steps.filter.outputs.not-only-docs }} + steps: + - uses: actions/checkout@v5 + - uses: dorny/paths-filter@v3 + id: filter + with: + filters: | + docs: + - 'docs/**' + - '.config/dictionaries/project.dic' + not-only-docs: + - '!((docs/**)|.config/dictionaries/project.dic)' + + docs-only: + if: ${{ needs.paths-filter.outputs.docs == 'true' && needs.paths-filter.outputs.not-only-docs != 'true' }} + needs: [paths-filter] + uses: input-output-hk/catalyst-forge/.github/workflows/release.yml@ci/v1.10.0 + with: + releases: '[{"project":"./docs","name":"docs"}]' + forge_version: 0.21.0 + ci: - if: ${{ !github.event.pull_request.draft }} - uses: input-output-hk/catalyst-forge/.github/workflows/ci.yml@ci/v1.9.0 + if: ${{ !github.event.pull_request.draft && needs.paths-filter.outputs.not-only-docs == 'true'}} + uses: input-output-hk/catalyst-forge/.github/workflows/ci.yml@ci/v1.10.0 with: - forge_version: 0.20.0 + forge_version: 0.21.0 test_reporting: if: ${{ !github.event.pull_request.draft }} - needs: ci + needs: [ci] uses: ./.github/workflows/generate-allure-report.yml From 8a4757d953e69ab403f2889e0894919fb78b754f Mon Sep 17 00:00:00 2001 From: Evgeniy Dikevich Date: Wed, 12 Nov 2025 15:59:09 +0100 Subject: [PATCH 4/5] Add needs Signed-off-by: Evgeniy Dikevich --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f4d3a34a13..87399653d46 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,6 +43,7 @@ jobs: ci: if: ${{ !github.event.pull_request.draft && needs.paths-filter.outputs.not-only-docs == 'true'}} + needs: [paths-filter] uses: input-output-hk/catalyst-forge/.github/workflows/ci.yml@ci/v1.10.0 with: forge_version: 0.21.0 From fba459d0bc43e77c2c5a1c313e74da897a4eabfe Mon Sep 17 00:00:00 2001 From: Evgeniy Dikevich Date: Wed, 12 Nov 2025 16:08:46 +0100 Subject: [PATCH 5/5] Fix cspell Signed-off-by: Evgeniy Dikevich --- .config/dictionaries/project.dic | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/dictionaries/project.dic b/.config/dictionaries/project.dic index 1ba21ca6ad7..fd85887412d 100644 --- a/.config/dictionaries/project.dic +++ b/.config/dictionaries/project.dic @@ -79,6 +79,7 @@ dockerhub docstrings doctests Dominik +dorny dotenv dotenvy dotglob