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