Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Bebbssos committed Nov 4, 2024
2 parents 3b034be + ec260fc commit fd6e1d2
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 18 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/hassfest.yaml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/upload_zip.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Upload zip

on:
push:
tags:
- '*'

jobs:
build:
name: Upload integration files as zip
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Create ZIP file
run: |
cd custom_components/defa_power # Change to the defa_power directory
zip -r defa_power.zip . # Zip the contents of the defa_power folder
- name: Upload ZIP file to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: custom_components/defa_power/defa_power.zip # Path to the created ZIP file
asset_name: defa_power.zip # Name of the asset
tag: ${{ github.ref }} # Use the current tag for the release
10 changes: 8 additions & 2 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
name: Validate

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

jobs:
validate-hacs:
validate:
runs-on: "ubuntu-latest"
name: Validate
steps:
- uses: "actions/checkout@v4"

- name: HACS validation
uses: "hacs/action@main"
with:
category: "integration"

- name: Hassfest validation
uses: home-assistant/actions/hassfest@master
4 changes: 2 additions & 2 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"filename": "defa_power.zip",
"name": "DEFA Power",
"render_readme": true,
"iot_class": "cloud_polling"
"zip_release": true
}

0 comments on commit fd6e1d2

Please sign in to comment.