Automate HomeAssistant releases (#4369)
This commit is contained in:
parent
6eb2bb3d09
commit
c78dafb2ec
2 changed files with 74 additions and 0 deletions
30
.github/workflows/release.yml
vendored
30
.github/workflows/release.yml
vendored
|
|
@ -90,3 +90,33 @@ jobs:
|
|||
env:
|
||||
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
|
||||
run: make apt-release
|
||||
|
||||
hassio:
|
||||
name: Create Hassio Addon Release
|
||||
needs:
|
||||
- docker
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Update version
|
||||
# uses: pocket-apps/action-update-version@v1
|
||||
# with:
|
||||
# files: "packaging/hassio/config.json"
|
||||
# version-regexp: '\d+.\d+.\d+'
|
||||
# branch-name: master
|
||||
# author-name: evcc-io
|
||||
run: |
|
||||
sed -i -e s#0.0.0#$(echo ${{ env.GITHUB_REF }} | sed -e s#refs/tags/##)# packaging/hassio/config.json
|
||||
|
||||
- name: Copy config to hassio-addon
|
||||
uses: andstor/copycat-action@v3
|
||||
with:
|
||||
personal_token: ${{ secrets.GH_TOKEN }}
|
||||
src_path: packaging/hassio/config.json
|
||||
dst_path: /evcc/config.json
|
||||
dst_owner: evcc-io
|
||||
src_branch: master
|
||||
dst_branch: master
|
||||
dst_repo_name: hassio-addon
|
||||
|
|
|
|||
44
packaging/hassio/config.json
Normal file
44
packaging/hassio/config.json
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
"name": "evcc",
|
||||
"version": "0.0.0",
|
||||
"slug": "evcc",
|
||||
"description": "EV Charge Controller!",
|
||||
"url": "https://github.com/evcc-io/evcc",
|
||||
"arch": [
|
||||
"armhf",
|
||||
"armv7",
|
||||
"aarch64",
|
||||
"amd64",
|
||||
"i386"
|
||||
],
|
||||
"startup": "application",
|
||||
"panel_icon": "mdi:ev-station",
|
||||
"panel_admin": false,
|
||||
"boot": "auto",
|
||||
"legacy": true,
|
||||
"stage": "experimental",
|
||||
"ingress": true,
|
||||
"ingress_port": 7070,
|
||||
"init": false,
|
||||
"image": "andig/evcc",
|
||||
"options": {
|
||||
"config_file": "/config/evcc.yaml"
|
||||
},
|
||||
"schema": {
|
||||
"config_file": "str"
|
||||
},
|
||||
"host_network": true,
|
||||
"map": [
|
||||
"config:rw"
|
||||
],
|
||||
"webui": "http://[HOST]:[PORT:7070]/",
|
||||
"ports": {
|
||||
"7070/tcp": 7070,
|
||||
"9522/udp": 9522,
|
||||
"8887/tcp": 8887
|
||||
},
|
||||
"ports_description": {
|
||||
"7070/tcp": "Webserver",
|
||||
"9522/udp": "Multicast (SMA Speedwire)",
|
||||
"8887/tcp": "OCPP web socket"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue