mirror of
https://github.com/esphome/home-assistant-addon.git
synced 2024-12-20 16:27:41 +01:00
Update community release workflows
This commit is contained in:
parent
b6445c529a
commit
19fb45bcb3
44
.github/workflows/bump-version.yml
vendored
44
.github/workflows/bump-version.yml
vendored
@ -57,20 +57,30 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [create-release]
|
needs: [create-release]
|
||||||
steps:
|
steps:
|
||||||
- name: Publish beta release to community-addons repository
|
- name: Publish beta release to community-addons repository
|
||||||
run: |
|
uses: peter-evans/repository-dispatch@v1.1.3
|
||||||
docker run --rm hassioaddons/repository-updater:latest \
|
with:
|
||||||
--repository hassio-addons/repository-beta \
|
token: ${{ secrets.COMMUNITY_ADDONS_TOKEN }}
|
||||||
--addon esphome \
|
repository: hassio-addons/repository-beta
|
||||||
--token "${TOKEN}"
|
event-type: update
|
||||||
env:
|
client-payload: >
|
||||||
TOKEN: ${{ secrets.COMMUNITY_ADDONS_TOKEN }}
|
{
|
||||||
- if: ${{ !contains(github.event.inputs.version, 'b') }}
|
"addon": "esphome",
|
||||||
name: Publish stable release to community-addons repository
|
"name": "ESPHome",
|
||||||
run: |
|
"repository": "esphome/home-assistant-addon",
|
||||||
docker run --rm hassioaddons/repository-updater:latest \
|
"version": "${{ github.event.inputs.version }}"
|
||||||
--repository hassio-addons/repository \
|
}
|
||||||
--addon esphome \
|
- if: ${{ !contains(github.event.inputs.version, 'b') }}
|
||||||
--token "${TOKEN}"
|
name: Publish stable release to community-addons repository
|
||||||
env:
|
uses: peter-evans/repository-dispatch@v1.1.3
|
||||||
TOKEN: ${{ secrets.COMMUNITY_ADDONS_TOKEN }}
|
with:
|
||||||
|
token: ${{ secrets.COMMUNITY_ADDONS_TOKEN }}
|
||||||
|
repository: hassio-addons/repository
|
||||||
|
event-type: update
|
||||||
|
client-payload: >
|
||||||
|
{
|
||||||
|
"addon": "esphome",
|
||||||
|
"name": "ESPHome",
|
||||||
|
"repository": "esphome/home-assistant-addon",
|
||||||
|
"version": "${{ github.event.inputs.version }}"
|
||||||
|
}
|
||||||
|
46
.github/workflows/deploy-community.yml
vendored
46
.github/workflows/deploy-community.yml
vendored
@ -16,21 +16,31 @@ jobs:
|
|||||||
deploy-community-addons:
|
deploy-community-addons:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- if: ${{ contains(github.event.inputs.version, 'b') || github.event.inputs.beta == 'true' }}
|
- if: ${{ contains(github.event.inputs.version, 'b') || github.event.inputs.beta == 'true' }}
|
||||||
name: Publish beta release to community-addons repository
|
name: Publish beta release to community-addons repository
|
||||||
run: |
|
uses: peter-evans/repository-dispatch@v1.1.3
|
||||||
docker run --rm hassioaddons/repository-updater:latest \
|
with:
|
||||||
--repository hassio-addons/repository-beta \
|
token: ${{ secrets.COMMUNITY_ADDONS_TOKEN }}
|
||||||
--addon esphome \
|
repository: hassio-addons/repository-beta
|
||||||
--token "${TOKEN}"
|
event-type: update
|
||||||
env:
|
client-payload: >
|
||||||
TOKEN: ${{ secrets.COMMUNITY_ADDONS_TOKEN }}
|
{
|
||||||
- if: ${{ !contains(github.event.inputs.version, 'b') }}
|
"addon": "esphome",
|
||||||
name: Publish stable release to community-addons repository
|
"name": "ESPHome",
|
||||||
run: |
|
"repository": "esphome/home-assistant-addon",
|
||||||
docker run --rm hassioaddons/repository-updater:latest \
|
"version": "${{ github.event.inputs.version }}"
|
||||||
--repository hassio-addons/repository \
|
}
|
||||||
--addon esphome \
|
- if: ${{ !contains(github.event.inputs.version, 'b') }}
|
||||||
--token "${TOKEN}"
|
name: Publish stable release to community-addons repository
|
||||||
env:
|
uses: peter-evans/repository-dispatch@v1.1.3
|
||||||
TOKEN: ${{ secrets.COMMUNITY_ADDONS_TOKEN }}
|
with:
|
||||||
|
token: ${{ secrets.COMMUNITY_ADDONS_TOKEN }}
|
||||||
|
repository: hassio-addons/repository
|
||||||
|
event-type: update
|
||||||
|
client-payload: >
|
||||||
|
{
|
||||||
|
"addon": "esphome",
|
||||||
|
"name": "ESPHome",
|
||||||
|
"repository": "esphome/home-assistant-addon",
|
||||||
|
"version": "${{ github.event.inputs.version }}"
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user