Skip to content

Commit

Permalink
chore: add extra step to mark taipy version as latest
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoandre-avaiga committed Jun 26, 2024
1 parent 7e43f3a commit 225cec5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-and-release-single-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
2 changes: 2 additions & 0 deletions tools/release/fetch_latest_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 225cec5

Please sign in to comment.