Skip to content

Commit 186d595

Browse files
committed
feat: add manual trigger to release workflow
- Add workflow_dispatch trigger for manual execution - Allow workflow to run on any branch push - Keep existing tag-based trigger functionality - Disable sync task temporarily with if: false
1 parent 4b6afc5 commit 186d595

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ on:
22
push:
33
tags:
44
- 'v*.*.*'
5-
workflow_dispatch:
5+
branches:
6+
- '*'
7+
workflow_dispatch:
68

79
name: Release
810

@@ -138,9 +140,12 @@ jobs:
138140
# Update tauri.conf.json with the tag version
139141
if [[ "$RUNNER_OS" == "Windows" ]]; then
140142
powershell -Command "(Get-Content src-tauri/tauri.conf.json) -replace '\"version\": \"[^\"]*\"', '\"version\": \"$VERSION\"' | Set-Content src-tauri/tauri.conf.json"
141-
else
142-
# Linux/macOS - use empty string for macOS compatibility
143+
elif [[ "$RUNNER_OS" == "macOS" ]]; then
144+
# Correct syntax for macOS (BSD sed)
143145
sed -i '' "s/\"version\": \"[^\"]*\"/\"version\": \"$VERSION\"/" src-tauri/tauri.conf.json
146+
else
147+
# Correct syntax for Linux (GNU sed)
148+
sed -i "s/\"version\": \"[^\"]*\"/\"version\": \"$VERSION\"/" src-tauri/tauri.conf.json
144149
fi
145150
146151
- uses: tauri-apps/tauri-action@v0
@@ -155,6 +160,7 @@ jobs:
155160
name: Create PR to update VERSION
156161
needs: [build]
157162
runs-on: ubuntu-latest
163+
if: false # Disable sync task temporarily
158164
steps:
159165
- uses: actions/checkout@v4
160166
with:

0 commit comments

Comments
 (0)