From d4732e5d537837d2c3f2a2288cb828b5cfdc9df4 Mon Sep 17 00:00:00 2001 From: Alexander Piskun Date: Thu, 28 Nov 2024 22:55:45 +0300 Subject: [PATCH] separate "models_catalog.json" for each version Signed-off-by: Alexander Piskun --- .github/workflows/docs.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 2212a4d..8ade0f6 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -79,10 +79,17 @@ jobs: git checkout --track "$branch" fi version=$(echo "$branch" | sed -E 's/origin\/version-([0-9\.]+)/\1/') + + # Create versioned flows ZIP zip -r "flows_publish/flows-$version.zip" flows + + # Create versioned models_catalog.json + cp models_catalog.json "flows_publish/models_catalog-$version.json" done + git checkout main zip -r flows_publish/flows.zip flows + cp models_catalog.json "flows_publish/models_catalog.json" - name: Build and push Docs run: |