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