Skip to content

Commit

Permalink
feat: github actions test and release
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalLuginbuehl committed Jun 27, 2023
1 parent ffaff1b commit 3811417
Show file tree
Hide file tree
Showing 11 changed files with 301 additions and 303 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI

on:
push:
branches: [main]
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm

- run: npm ci
- run: npm run package

- name: lint
run: npm run lint
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
push:
tags:
- 'v*.*.*'

jobs:
publish:
runs-on: windows-latest
permissions: write-all

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm

- run: npm ci

- name: build and release Electron app
run: npm run publish
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ Home Assistant Menu / Tray / Agent


Enables Quick actions

# developers
- Built using electron-forge
- material ui
- tray implementation from <https://github.com/xanderfrangos/twinkle-tray>

# Outlook
More integrations
Colors, etc.
More integrations (Colors, etc.)

# Related:
- <https://github.com/codechimp-org/ha-menu>
Expand Down
12 changes: 12 additions & 0 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ const config: ForgeConfig = {
},
}),
],
publishers: [
{
name: '@electron-forge/publisher-github',
config: {
repository: {
owner: 'pascalluginbuehl',
name: 'home-assistant-tray-menu',
},
prerelease: true,
},
},
],
};

export default config;
Loading

0 comments on commit 3811417

Please sign in to comment.