mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
ci(desktop): support both v* and beta-v* tag triggers with unified version extraction
This commit is contained in:
parent
c891cc3d9b
commit
e7b5b37404
1 changed files with 6 additions and 1 deletions
7
.github/workflows/desktop-release.yml
vendored
7
.github/workflows/desktop-release.yml
vendored
|
|
@ -3,6 +3,7 @@ name: Desktop Release
|
|||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
- 'beta-v*'
|
||||
|
||||
permissions:
|
||||
|
|
@ -29,7 +30,11 @@ jobs:
|
|||
- name: Extract version from tag
|
||||
id: version
|
||||
shell: bash
|
||||
run: echo "VERSION=${GITHUB_REF#refs/tags/beta-v}" >> "$GITHUB_OUTPUT"
|
||||
run: |
|
||||
TAG=${GITHUB_REF#refs/tags/}
|
||||
VERSION=${TAG#beta-}
|
||||
VERSION=${VERSION#v}
|
||||
echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue