mirror of
https://github.com/esphome/home-assistant-addon.git
synced 2024-12-17 15:57:46 +01:00
Update community release workflows
This commit is contained in:
parent
b6445c529a
commit
19fb45bcb3
38
.github/workflows/bump-version.yml
vendored
38
.github/workflows/bump-version.yml
vendored
@ -58,19 +58,29 @@ jobs:
|
||||
needs: [create-release]
|
||||
steps:
|
||||
- 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 }}
|
||||
uses: peter-evans/repository-dispatch@v1.1.3
|
||||
with:
|
||||
token: ${{ secrets.COMMUNITY_ADDONS_TOKEN }}
|
||||
repository: hassio-addons/repository-beta
|
||||
event-type: update
|
||||
client-payload: >
|
||||
{
|
||||
"addon": "esphome",
|
||||
"name": "ESPHome",
|
||||
"repository": "esphome/home-assistant-addon",
|
||||
"version": "${{ github.event.inputs.version }}"
|
||||
}
|
||||
- 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 }}
|
||||
uses: peter-evans/repository-dispatch@v1.1.3
|
||||
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 }}"
|
||||
}
|
||||
|
38
.github/workflows/deploy-community.yml
vendored
38
.github/workflows/deploy-community.yml
vendored
@ -18,19 +18,29 @@ jobs:
|
||||
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 }}
|
||||
uses: peter-evans/repository-dispatch@v1.1.3
|
||||
with:
|
||||
token: ${{ secrets.COMMUNITY_ADDONS_TOKEN }}
|
||||
repository: hassio-addons/repository-beta
|
||||
event-type: update
|
||||
client-payload: >
|
||||
{
|
||||
"addon": "esphome",
|
||||
"name": "ESPHome",
|
||||
"repository": "esphome/home-assistant-addon",
|
||||
"version": "${{ github.event.inputs.version }}"
|
||||
}
|
||||
- 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 }}
|
||||
uses: peter-evans/repository-dispatch@v1.1.3
|
||||
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