Skip to content

Commit 3bc89f9

Browse files
committed
Update release electron action
1 parent a0f2cc7 commit 3bc89f9

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/release-electron.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Build Electron Release
22

3-
on: push
3+
on:
4+
push:
5+
tags:
6+
# Match a tag like "v1.2.3" or "v1.2.3-alpha.4"
7+
- "v*.*.*"
8+
- "v*.*.*-*.*"
9+
410

511
jobs:
612
build:
@@ -50,16 +56,16 @@ jobs:
5056
uses: softprops/action-gh-release@v2
5157
with:
5258
files: linux.zip
53-
if: runner.os == 'Linux' && startsWith(github.ref, 'refs/tags/')
59+
if: runner.os == 'Linux'
5460

5561
- name: Create Release Build (Windows)
5662
uses: softprops/action-gh-release@v2
5763
with:
5864
files: windows-x64.zip
59-
if: runner.os == 'Windows' && startsWith(github.ref, 'refs/tags/')
65+
if: runner.os == 'Windows'
6066

6167
- name: Create Release Build (macOS)
6268
uses: softprops/action-gh-release@v2
6369
with:
6470
files: macos.zip
65-
if: runner.os == 'macOS' && startsWith(github.ref, 'refs/tags/')
71+
if: runner.os == 'macOS'

0 commit comments

Comments
 (0)