From 225cec54c47ba78ecd992f56040d67513138a0b8 Mon Sep 17 00:00:00 2001 From: Joao Andre Date: Thu, 20 Jun 2024 22:38:34 -0300 Subject: [PATCH] chore: add extra step to mark taipy version as latest --- .github/workflows/build-and-release-single-package.yml | 9 +++++++-- tools/release/fetch_latest_versions.py | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-release-single-package.yml b/.github/workflows/build-and-release-single-package.yml index 43a80e1431..949931cfe7 100644 --- a/.github/workflows/build-and-release-single-package.yml +++ b/.github/workflows/build-and-release-single-package.yml @@ -27,8 +27,6 @@ jobs: gui_VERSION: ${{ steps.version-setup.outputs.gui_VERSION }} rest_VERSION: ${{ steps.version-setup.outputs.rest_VERSION }} templates_VERSION: ${{ steps.version-setup.outputs.templates_VERSION }} - VERSION: ${{ steps.version-setup.outputs.VERSION }} - NEW_VERSION: ${{ steps.version-setup.outputs.NEW_VERSION }} steps: - uses: actions/checkout@v4 - name: Extract branch name @@ -165,3 +163,10 @@ jobs: shell: bash env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Ensure Taipy release is marked as latest + run: | + gh release edit ${{needs.fetch-versions.outputs.taipy_VERSION}} --latest + shell: bash + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/tools/release/fetch_latest_versions.py b/tools/release/fetch_latest_versions.py index 3e595fcc9a..6898fde713 100644 --- a/tools/release/fetch_latest_versions.py +++ b/tools/release/fetch_latest_versions.py @@ -35,6 +35,8 @@ def fetch_latest_releases_from_github(dev=False, target_version="", target_packa releases["rest"] = releases.get("rest") or tag.split("-")[0] elif "templates" in tag: releases["templates"] = releases.get("templates") or tag.split("-")[0] + elif "-" not in tag: + releases["taipy"] = releases.get("taipy") or tag releases[target_package] = target_version return releases