-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5751eb2
commit 00a3801
Showing
4 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Validate HACS | ||
on: | ||
push: | ||
pull_request: | ||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Download repo | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-python@v2 | ||
name: Setup Python | ||
with: | ||
python-version: '3.8.x' | ||
|
||
- uses: actions/cache@v2 | ||
name: Cache | ||
with: | ||
path: | | ||
~/.cache/pip | ||
key: custom-component-ci | ||
|
||
- name: HACS Action | ||
uses: hacs/action@main | ||
with: | ||
CATEGORY: integration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Validate with hassfest | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
validate: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: "actions/checkout@v2" | ||
- uses: home-assistant/actions/hassfest@master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
name: Prepare release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download repo | ||
uses: actions/checkout@v1 | ||
|
||
- name: Zip mpk_lodz dir | ||
run: | | ||
cd /home/runner/work/Home-Assistant-custom-components-MPK-Lodz/Home-Assistant-custom-components-MPK-Lodz/custom_components/mpk_lodz | ||
zip mpk_lodz.zip -r ./ | ||
- name: Upload zip to release | ||
uses: svenstaro/upload-release-action@v1-release | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: /home/runner/work/Home-Assistant-custom-components-MPK-Lodz/Home-Assistant-custom-components-MPK-Lodz/custom_components/mpk_lodz/mpk_lodz.zip | ||
asset_name: mpk_lodz.zip | ||
tag: ${{ github.ref }} | ||
overwrite: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "MPK Łódź", | ||
"domains": ["sensor"], | ||
"country": "PL", | ||
"render_readme": true, | ||
"zip_release": true, | ||
"filename": "mpk_lodz.zip" | ||
} |