Compare commits
3 Commits
v2022.1.4
...
v2022.2.0b
36
.github/workflows/deploy-community.yml
vendored
Normal file
36
.github/workflows/deploy-community.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
name: Update Community Repo
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: The version to release
|
||||||
|
required: true
|
||||||
|
beta:
|
||||||
|
description: Whether to release a beta version
|
||||||
|
type: boolean
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy-community-addons:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- if: ${{ contains(github.event.inputs.version, 'b') || github.event.inputs.beta == 'true' }}
|
||||||
|
name: Publish beta release to community-addons repository
|
||||||
|
run: |
|
||||||
|
docker run --rm hassioaddons/repository-updater:latest \
|
||||||
|
--repository hassio-addons/repository-beta \
|
||||||
|
--addon esphome \
|
||||||
|
--token "${TOKEN}"
|
||||||
|
env:
|
||||||
|
TOKEN: ${{ secrets.COMMUNITY_ADDONS_TOKEN }}
|
||||||
|
- if: ${{ !contains(github.event.inputs.version, 'b') }}
|
||||||
|
name: Publish stable release to community-addons repository
|
||||||
|
run: |
|
||||||
|
docker run --rm hassioaddons/repository-updater:latest \
|
||||||
|
--repository hassio-addons/repository \
|
||||||
|
--addon esphome \
|
||||||
|
--token "${TOKEN}"
|
||||||
|
env:
|
||||||
|
TOKEN: ${{ secrets.COMMUNITY_ADDONS_TOKEN }}
|
||||||
@@ -40,5 +40,5 @@
|
|||||||
"stage": "experimental",
|
"stage": "experimental",
|
||||||
"uart": true,
|
"uart": true,
|
||||||
"url": "https://beta.esphome.io/",
|
"url": "https://beta.esphome.io/",
|
||||||
"version": "2022.2.0b1"
|
"version": "2022.2.0b2"
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,7 @@ esphome-beta:
|
|||||||
<<: *base
|
<<: *base
|
||||||
directory: esphome-beta
|
directory: esphome-beta
|
||||||
name: ESPHome (beta)
|
name: ESPHome (beta)
|
||||||
version: '2022.2.0b1' # BETA
|
version: '2022.2.0b2' # BETA
|
||||||
slug: esphome-beta
|
slug: esphome-beta
|
||||||
description: "Beta version of ESPHome add-on"
|
description: "Beta version of ESPHome add-on"
|
||||||
url: https://beta.esphome.io/
|
url: https://beta.esphome.io/
|
||||||
|
|||||||
Reference in New Issue
Block a user