Skip to content

Commit

Permalink
Allow vizro-ai in release process
Browse files Browse the repository at this point in the history
  • Loading branch information
maxschulz-COL committed Nov 10, 2023
1 parent 496738f commit 335ed9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/check_package_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import requests

AVAILABLE_PACKAGES = ["vizro-core"]
AVAILABLE_PACKAGES = ["vizro-core","vizro-ai"]
VERSION_MATCHSTR = r'\s*__version__\s*=\s*"(\d+\.\d+\.\d+)"'
RESPONSE_ERROR = 404

Expand Down
8 changes: 7 additions & 1 deletion tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ GITHUB_ENDPOINT="https://api.github.com/repos/${GITHUB_USER}/${GITHUB_REPO}/rele

BODY=$(jq -Rs . < "$BODY_PATH")

if [ "$PACKAGE" = "vizro-core" ]; then
TAG_NAME="${VERSION}"
else
TAG_NAME="${PACKAGE}-${VERSION}"
fi

PAYLOAD=$(cat <<-END
{
"tag_name": "${VERSION}",
"tag_name": "${TAG_NAME}",
"target_commitish": "main",
"name": "${PACKAGE}-${VERSION}",
"body": ${BODY},
Expand Down

0 comments on commit 335ed9c

Please sign in to comment.