mirror of
https://github.com/esphome/home-assistant-addon.git
synced 2024-11-15 10:45:14 +01:00
Add workflow to trigger community repo update
This commit is contained in:
parent
bd6394d415
commit
4f451fac6a
35
.github/workflows/deploy-community.yml
vendored
Normal file
35
.github/workflows/deploy-community.yml
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
name: Update Community Repo
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: The version to release
|
||||
required: true
|
||||
beta:
|
||||
description: Whether to release a beta version
|
||||
required: false
|
||||
default: false
|
||||
|
||||
jobs:
|
||||
deploy-community-addons:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- if: ${{ contains(github.event.inputs.version, 'b') || github.event.inputs.beta }}
|
||||
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 }}
|
Loading…
Reference in New Issue
Block a user