Skip to content

Commit 3811417

Browse files
feat: github actions test and release
1 parent ffaff1b commit 3811417

File tree

11 files changed

+301
-303
lines changed

11 files changed

+301
-303
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 18.x
17+
cache: npm
18+
19+
- run: npm ci
20+
- run: npm run package
21+
22+
- name: lint
23+
run: npm run lint

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
publish:
10+
runs-on: windows-latest
11+
permissions: write-all
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: 18.x
18+
cache: npm
19+
20+
- run: npm ci
21+
22+
- name: build and release Electron app
23+
run: npm run publish
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.github_token }}

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ Home Assistant Menu / Tray / Agent
33

44

55
Enables Quick actions
6-
6+
# developers
7+
- Built using electron-forge
8+
- material ui
9+
- tray implementation from <https://github.com/xanderfrangos/twinkle-tray>
710

811
# Outlook
9-
More integrations
10-
Colors, etc.
12+
More integrations (Colors, etc.)
1113

1214
# Related:
1315
- <https://github.com/codechimp-org/ha-menu>

forge.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ const config: ForgeConfig = {
3939
},
4040
}),
4141
],
42+
publishers: [
43+
{
44+
name: '@electron-forge/publisher-github',
45+
config: {
46+
repository: {
47+
owner: 'pascalluginbuehl',
48+
name: 'home-assistant-tray-menu',
49+
},
50+
prerelease: true,
51+
},
52+
},
53+
],
4254
};
4355

4456
export default config;

0 commit comments

Comments
 (0)