Skip to content

Commit 1b3d0e3

Browse files
committed
update build.yml to enable manual trigger
1 parent 4922858 commit 1b3d0e3

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ on:
44
workflow_call:
55
repository_dispatch:
66
types: [trigger-electron-build]
7-
7+
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: 'Release tag to build for (e.g., v1.2.3)'
11+
required: true
12+
default: 'v'
813
jobs:
914
build-macos:
1015
runs-on: macos-latest
@@ -34,7 +39,7 @@ jobs:
3439
- name: Upload artifact to GitHub Release
3540
uses: softprops/action-gh-release@v1
3641
with:
37-
tag_name: ${{ github.event.client_payload.tag }}
42+
tag_name: ${{ github.event.client_payload.tag || github.event.inputs.tag }}
3843
files: |
3944
out/make/**/*.zip
4045
out/make/**/*.dmg
@@ -66,7 +71,7 @@ jobs:
6671
- name: Upload artifact to GitHub Release
6772
uses: softprops/action-gh-release@v1
6873
with:
69-
tag_name: ${{ github.event.client_payload.tag }}
74+
tag_name: ${{ github.event.client_payload.tag || github.event.inputs.tag }}
7075
files: |
7176
out/make/**/*.AppImage
7277
out/make/**/*.deb
@@ -91,6 +96,7 @@ jobs:
9196
git config --global url."https://github.com/".insteadOf "ssh://git@github.com/"
9297
9398
- name: Install dependencies with retry # Retry logic for Windows because of network issues
99+
shell: bash
94100
run: |
95101
for i in 1 2 3; do
96102
yarn install --frozen-lockfile && break || sleep 10
@@ -102,7 +108,7 @@ jobs:
102108
- name: Upload artifact to GitHub Release
103109
uses: softprops/action-gh-release@v1
104110
with:
105-
tag_name: ${{ github.event.client_payload.tag }}
111+
tag_name: ${{ github.event.client_payload.tag || github.event.inputs.tag }}
106112
files: |
107113
out/make/**/*.exe
108114
out/make/**/*.zip

0 commit comments

Comments
 (0)