Skip to content

Commit dad6ded

Browse files
ci(desktop): simplify release tag and name to use only version
1 parent fadc8c8 commit dad6ded

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/desktop-release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: "Release Desktop App"
33
on:
44
push:
55
tags:
6-
- "desktop-v*"
6+
- "v*"
77
workflow_dispatch:
88
inputs:
99
version_bump:
@@ -52,10 +52,10 @@ jobs:
5252
git config --global user.email "github-actions[bot]@users.noreply.github.com"
5353
git add apps/desktop/package.json apps/desktop/src-tauri/tauri.conf.json
5454
git commit -m "chore(desktop): bump version to $NEW_VERSION"
55-
git tag "desktop-v$NEW_VERSION"
55+
git tag "v$NEW_VERSION"
5656
git push origin HEAD --tags
5757
echo "new_sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
58-
echo "tag_name=desktop-v$NEW_VERSION" >> $GITHUB_OUTPUT
58+
echo "tag_name=v$NEW_VERSION" >> $GITHUB_OUTPUT
5959
echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
6060
6161
- name: Set Variables
@@ -66,7 +66,7 @@ jobs:
6666
echo "version=${{ steps.bump.outputs.version }}" >> $GITHUB_OUTPUT
6767
else
6868
echo "tag_name=${{ github.ref_name }}" >> $GITHUB_OUTPUT
69-
VERSION=$(echo "${{ github.ref_name }}" | sed 's/desktop-v//')
69+
VERSION=$(echo "${{ github.ref_name }}" | sed 's/^v//')
7070
echo "version=$VERSION" >> $GITHUB_OUTPUT
7171
fi
7272
echo "should_release=true" >> $GITHUB_OUTPUT
@@ -76,11 +76,10 @@ jobs:
7676
uses: softprops/action-gh-release@v2
7777
with:
7878
tag_name: ${{ steps.vars.outputs.tag_name }}
79-
name: "Basetrack Desktop Companion v${{ steps.vars.outputs.version }}"
79+
name: "v${{ steps.vars.outputs.version }}"
8080
body: |
81-
## Basetrack Desktop v${{ steps.vars.outputs.version }}
81+
## v${{ steps.vars.outputs.version }}
8282
83-
This is the latest release for Basetrack Desktop Companion.
8483
Please download the appropriate installer for your operating system from the assets below.
8584
8685
### Supported Platforms

0 commit comments

Comments
 (0)