Skip to content

Commit f5faebb

Browse files
committed
Add build and release action
1 parent 5d9bc12 commit f5faebb

File tree

2 files changed

+32
-8
lines changed

2 files changed

+32
-8
lines changed

.github/workflows/build-release.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build/release
2+
3+
on: push
4+
5+
jobs:
6+
release:
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
matrix:
11+
os: [macos-latest, windows-latest]
12+
13+
steps:
14+
- name: Check out Git repository
15+
uses: actions/checkout@v1
16+
17+
- name: Install Node.js, NPM and Yarn
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: 16
21+
22+
- name: Build/release Electron app
23+
uses: Yan-Jobs/action-electron-builder@v1.7.0
24+
with:
25+
# GitHub token, automatically provided to the action
26+
# (No need to define this secret in the repo settings)
27+
github_token: ${{ secrets.github_token }}
28+
29+
# If the commit is tagged with a version (e.g. "v1.0.0"),
30+
# release the app after building
31+
release: ${{ startsWith(github.ref, 'refs/tags/v') }}

electron-builder.yml

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
appId: com.electron.app
1+
appId: de.exord.360grad.recorder
22
productName: Phone Recorder 360°
33
directories:
44
buildResources: build
@@ -33,13 +33,6 @@ mac:
3333
notarize: false
3434
dmg:
3535
artifactName: ${name}-${version}.${ext}
36-
linux:
37-
target:
38-
- AppImage
39-
- snap
40-
- deb
41-
maintainer: electronjs.org
42-
category: Utility
4336
appImage:
4437
artifactName: ${name}-${version}.${ext}
4538
npmRebuild: false

0 commit comments

Comments
 (0)