Parcourir la source

chore: add extra step to mark taipy version as latest

Joao Andre il y a 11 mois
Parent
commit
b94f16853a

+ 8 - 2
.github/workflows/build-and-release-single-package.yml

@@ -27,8 +27,7 @@ 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 }}
+        taipy_VERSION: ${{ steps.version-setup.outputs.taipy_VERSION }}
     steps:
       - uses: actions/checkout@v4
       - name: Extract branch name
@@ -165,3 +164,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 }}

+ 2 - 0
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