Compare commits
22 Commits
50
.github/workflows/bump-version.yml
vendored
50
.github/workflows/bump-version.yml
vendored
@@ -24,7 +24,7 @@ jobs:
|
|||||||
git config user.name esphomebot
|
git config user.name esphomebot
|
||||||
git config user.email esphome@nabucasa.com
|
git config user.email esphome@nabucasa.com
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Bump version to v${{ github.event.inputs.version }}"
|
git commit -m "Bump version to ${{ github.event.inputs.version }}"
|
||||||
git push
|
git push
|
||||||
COMMIT=$(git rev-parse HEAD)
|
COMMIT=$(git rev-parse HEAD)
|
||||||
echo "::set-output name=commit_sha::${COMMIT}"
|
echo "::set-output name=commit_sha::${COMMIT}"
|
||||||
@@ -35,7 +35,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: v${{ github.event.inputs.version }}
|
tag_name: ${{ github.event.inputs.version }}
|
||||||
release_name: ${{ github.event.inputs.version }}
|
release_name: ${{ github.event.inputs.version }}
|
||||||
body: 'See https://beta.esphome.io/changelog/index.html'
|
body: 'See https://beta.esphome.io/changelog/index.html'
|
||||||
prerelease: true
|
prerelease: true
|
||||||
@@ -47,7 +47,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: v${{ github.event.inputs.version }}
|
tag_name: ${{ github.event.inputs.version }}
|
||||||
release_name: ${{ github.event.inputs.version }}
|
release_name: ${{ github.event.inputs.version }}
|
||||||
body: 'See https://esphome.io/changelog/index.html'
|
body: 'See https://esphome.io/changelog/index.html'
|
||||||
prerelease: false
|
prerelease: false
|
||||||
@@ -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
Normal file
46
.github/workflows/deploy-community.yml
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
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
|
||||||
|
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
|
||||||
|
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 }}"
|
||||||
|
}
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
*$py.class
|
*$py.class
|
||||||
|
venv/
|
||||||
|
|||||||
@@ -40,5 +40,5 @@
|
|||||||
"stage": "experimental",
|
"stage": "experimental",
|
||||||
"uart": true,
|
"uart": true,
|
||||||
"url": "https://beta.esphome.io/",
|
"url": "https://beta.esphome.io/",
|
||||||
"version": "2022.1.3"
|
"version": "2022.3.1"
|
||||||
}
|
}
|
||||||
@@ -38,5 +38,5 @@
|
|||||||
"slug": "esphome",
|
"slug": "esphome",
|
||||||
"uart": true,
|
"uart": true,
|
||||||
"url": "https://esphome.io/",
|
"url": "https://esphome.io/",
|
||||||
"version": "2022.1.3"
|
"version": "2022.3.1"
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,7 @@ esphome-beta:
|
|||||||
<<: *base
|
<<: *base
|
||||||
directory: esphome-beta
|
directory: esphome-beta
|
||||||
name: ESPHome (beta)
|
name: ESPHome (beta)
|
||||||
version: '2022.1.3' # BETA
|
version: '2022.3.1' # 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/
|
||||||
@@ -74,7 +74,7 @@ esphome-stable:
|
|||||||
<<: *base
|
<<: *base
|
||||||
directory: esphome
|
directory: esphome
|
||||||
name: ESPHome
|
name: ESPHome
|
||||||
version: '2022.1.3' # STABLE
|
version: '2022.3.1' # STABLE
|
||||||
slug: esphome
|
slug: esphome
|
||||||
description: "ESPHome add-on for intelligently managing all your ESP8266/ESP32 devices"
|
description: "ESPHome add-on for intelligently managing all your ESP8266/ESP32 devices"
|
||||||
image: ghcr.io/esphome/esphome-hassio-{arch}
|
image: ghcr.io/esphome/esphome-hassio-{arch}
|
||||||
|
|||||||
Reference in New Issue
Block a user