From 67e0371cf5e91d1591c6d0ec49cee68863b20f5c Mon Sep 17 00:00:00 2001 From: Sersch Date: Sun, 26 Jul 2020 16:21:51 +0200 Subject: [PATCH] fix(ci): Trigger HyperBian build after release --- .github/workflows/push-master.yml | 9 --------- .github/workflows/release.yml | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/push-master.yml b/.github/workflows/push-master.yml index 95febfe8..dfff1d9a 100644 --- a/.github/workflows/push-master.yml +++ b/.github/workflows/push-master.yml @@ -215,12 +215,3 @@ jobs: prerelease: ${{ env.preRelease }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - # Dispatch event to build new HyperBian image - - name: Dispatch HyperBian build - uses: peter-evans/repository-dispatch@v1 - if: ${{ github.repository_owner == 'hyperion-project'}} - with: - repository: hyperion-project/HyperBian - token: ${{ secrets.HYPERION_BOT_TOKEN }} - event-type: hyperion_push diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..125c29a3 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,17 @@ +name: Release Actions +on: + release: + types: [published] + +jobs: + hyperbian: + runs-on: ubuntu-latest + steps: + # Dispatch event to build new HyperBian image + - name: Dispatch HyperBian build + uses: peter-evans/repository-dispatch@v1 + if: ${{ github.repository_owner == 'hyperion-project'}} + with: + repository: hyperion-project/HyperBian + token: ${{ secrets.HYPERION_BOT_TOKEN }} + event-type: hyperion_push