Skip to content

Commit b4727bb

Browse files
add a step with checking that release already exists
Signed-off-by: Nikita Skrynnik <[email protected]>
1 parent 5e6dd91 commit b4727bb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/release.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ jobs:
3232
- name: Install Node Modules
3333
run: npm install
3434

35+
- name: Check Release Exists
36+
run: |
37+
VERSION=$(jq -r '.version' src-tauri/tauri.conf.json)
38+
if gh release view "$VERSION" > /dev/null 2>&1; then
39+
echo "Release $VERSION already exists!"
40+
exit 1
41+
fi
42+
3543
- name: Build Huly Browser
3644
uses: tauri-apps/tauri-action@v0
3745
id: tauri-build
@@ -69,6 +77,14 @@ jobs:
6977
- name: Install Node Modules
7078
run: npm install
7179

80+
- name: Check Release Exists
81+
run: |
82+
VERSION=$(jq -r '.version' src-tauri/tauri.conf.json)
83+
if gh release view "$VERSION" > /dev/null 2>&1; then
84+
echo "Release $VERSION already exists!"
85+
exit 1
86+
fi
87+
7288
- name: Import Apple Developer Certificate
7389
env:
7490
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}

0 commit comments

Comments
 (0)