-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev branch, release tags, readme changes, + debug log start
- Loading branch information
1 parent
3ea1266
commit 4b89542
Showing
8 changed files
with
51 additions
and
5 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Validate with hassfest | ||
name: Validate | ||
|
||
on: | ||
push: | ||
|
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,30 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
workflow_dispatch: | ||
jobs: | ||
hacs: | ||
name: HACS Action | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set version to release tag | ||
run: | | ||
sed -i "s/GITHUB_RELEASE_VERSION/${{ github.event.release.tag_name }}/g" custom_components/ankermake/manifest.json | ||
sed -i "s/GITHUB_RELEASE_VERSION/${{ github.event.release.tag_name }}/g" custom_components/ankermake/const.py | ||
- name: Zip custom_components/ankermake | ||
run: zip -r ankermake.zip custom_components/ankermake | ||
|
||
- name: Upload release asset to the existing release | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./ankermake.zip | ||
asset_name: ankermake.zip | ||
asset_content_type: application/zip | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
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
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
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
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
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 |
---|---|---|
|
@@ -8,5 +8,6 @@ services: | |
restart: unless-stopped | ||
environment: | ||
- TZ=Europe/Oslo | ||
- ANKERMAKE_DEBUG=true | ||
ports: | ||
- "8123:8123" |
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{ | ||
"name": "AnkerMake", | ||
"render_readme": true | ||
"render_readme": true, | ||
"content_in_root": false, | ||
"zip_release": true, | ||
"filename": "ankermake.zip" | ||
} |