Skip to content

Commit 3c56ce4

Browse files
committed
Update workflow to dynamically set release tag
1 parent 59d7464 commit 3c56ce4

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616
- name: Checkout
1717
uses: actions/checkout@v4
1818

19+
- name: Get Marklet version
20+
run: |
21+
VERSION=$(python -c "import json; print(json.load(open('manifest/manifest.chrome.json'))['version'])")
22+
echo "MARKLET_VERSION=$VERSION" >> "$GITHUB_ENV"
23+
1924
- name: Prepare Chrome build
2025
run: |
2126
cp manifest/manifest.chrome.json manifest.json
@@ -29,8 +34,8 @@ jobs:
2934
- name: Create Github Release
3035
uses: softprops/action-gh-release@v2
3136
with:
32-
tag_name: "latest-build"
33-
name: Latest Build
37+
tag_name: "${{ env.MARKLET_VERSION }}"
38+
name: "Marklet v${{ env.MARKLET_VERSION }}"
3439
overwrite_files: true
3540
make_latest: true
3641
files: |

0 commit comments

Comments
 (0)