Skip to content

Commit

Permalink
separate "models_catalog.json" for each version
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
  • Loading branch information
bigcat88 committed Nov 28, 2024
1 parent 2baf44b commit d4732e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit d4732e5

Please sign in to comment.