Skip to content

Commit a4ed8a0

Browse files
committed
update workflow
1 parent 63f1365 commit a4ed8a0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build-binaries.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Build binaries
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
beta:
7+
description: 'Build with Electron beta'
8+
required: true
9+
default: 'true'
510

611
jobs:
712
build:
@@ -22,17 +27,12 @@ jobs:
2227
- name: Install dependencies
2328
run: npm install
2429
- name: Install Electron beta
30+
if: github.event.inputs.beta == 'true'
2531
run: npm install electron@beta
2632
- name: Package
27-
run: npm run dist
33+
run: npm run pack
2834
env:
2935
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
- name: Cleanup artifacts (Windows)
31-
if: matrix.os == 'windows-latest'
32-
run: npx rimraf "dist/!(*.exe)"
33-
- name: Cleanup artifacts (except Windows)
34-
if: matrix.os != 'windows-latest'
35-
run: npx rimraf "dist/!(*.deb|*.AppImage|*.dmg)"
3636
- name: Upload artifacts
3737
uses: actions/upload-artifact@v2
3838
with:

0 commit comments

Comments
 (0)