fix(ci): Trigger HyperBian build after release

This commit is contained in:
Sersch 2020-07-26 16:21:51 +02:00
parent a9ad9d920f
commit 67e0371cf5
2 changed files with 17 additions and 9 deletions

View File

@ -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

17
.github/workflows/release.yml vendored Normal file
View File

@ -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