Skip to content

Commit a2b85e7

Browse files
committed
Merge branch 'main' of https://github.com/addyire/ha-menu
2 parents 9931abd + 2b3a131 commit a2b85e7

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/main.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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]
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: 17
21+
22+
- name: Build/release Electron app
23+
uses: samuelmeuli/action-electron-builder@v1
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+
args: "--x64 --arm64"
30+
31+
# If the commit is tagged with a version (e.g. "v1.0.0"),
32+
# release the app after building
33+
release: ${{ startsWith(github.ref, 'refs/tags/v') }}

0 commit comments

Comments
 (0)