From 2a19c0c0a2a08616dd35df77178ef552d1410340 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Thu, 24 Mar 2022 17:09:24 +1300 Subject: [PATCH] No longer publish updates to Hassio Community Addons (#51) --- .github/workflows/bump-version.yml | 32 ------------------ .github/workflows/deploy-community.yml | 46 -------------------------- 2 files changed, 78 deletions(-) delete mode 100644 .github/workflows/deploy-community.yml diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 4c084ff..cc0d636 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -52,35 +52,3 @@ jobs: body: 'See https://esphome.io/changelog/index.html' prerelease: false commitish: ${{ steps.commit_version.outputs.commit_sha }} - - deploy-community-addons: - runs-on: ubuntu-latest - needs: [create-release] - steps: - - 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 }}" - } diff --git a/.github/workflows/deploy-community.yml b/.github/workflows/deploy-community.yml deleted file mode 100644 index 847b071..0000000 --- a/.github/workflows/deploy-community.yml +++ /dev/null @@ -1,46 +0,0 @@ -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 }}" - }