Skip to content

Commit

Permalink
Merge pull request #9 from wiltodelta/new-build
Browse files Browse the repository at this point in the history
New build
  • Loading branch information
wiltodelta authored Jan 16, 2025
2 parents 3a22b7e + 8417f0c commit fee67dd
Show file tree
Hide file tree
Showing 12 changed files with 937 additions and 27 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@ name: HACS Action

on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 0 * * *"
branches:
- main

jobs:
hacs:
name: HACS Action
runs-on: "ubuntu-latest"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: HACS Action
uses: "hacs/action@main"
uses: hacs/action@main
with:
category: "plugin"
category: "plugin"
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build

on:
push:
branches:
- '**'
tags:
- 'v*'
pull_request:

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Needed to get all tags for versioning

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Create Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
files: dist/*
draft: false
prerelease: false
23 changes: 13 additions & 10 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
name: Validate
name: HACS Validate

on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
branches:
- main

jobs:
validate-hacs:
runs-on: "ubuntu-latest"
validate:
name: HACS Validate
runs-on: ubuntu-22.04
steps:
- uses: "actions/checkout@v3"
- name: HACS validation
uses: "hacs/action@main"
- uses: actions/checkout@v4

- name: HACS Validate
uses: hacs/action@main
with:
category: "plugin"
category: "plugin"
12 changes: 4 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
.DS_Store
node_modules/
.DS_Store
*.log
.env
.env.*
*.local
.idea/
.vscode/
*.swp
*.swo
npm-debug.log*
yarn-debug.log*
yarn-error.log*
1 change: 0 additions & 1 deletion dist/version.js

This file was deleted.

3 changes: 1 addition & 2 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "📺 SugarTV Card",
"filename": "sugartv-card.js",
"render_readme": true,
"country": ["AD", "AR", "AU", "BH", "BE", "CA", "DK", "DE", "EE", "ES", "FI", "FR", "HK", "HR", "IS", "IN", "IE", "IL", "IT", "JO", "KW", "LV", "LB", "LT", "LU", "MO", "HU", "MT", "NL", "NZ", "NO", "OM", "PL", "PT", "QA", "RO", "SA", "SH", "SG", "SI", "SK", "ZA", "CH", "SE", "TR", "AE", "GB", "US", "AT", "CZ", "GR", "BG", "JP", "KR"]
"render_readme": true
}
Loading

0 comments on commit fee67dd

Please sign in to comment.