ci: add single event to dispatch all build [skip ci]

This commit is contained in:
Baptiste Augrain 2023-11-15 22:30:37 +01:00
parent 8606615423
commit 8bb53bf173
4 changed files with 14 additions and 17 deletions

View file

@ -9,6 +9,8 @@ on:
test_asset_builder:
type: boolean
description: Test the assets builder
repository_dispatch:
types: [stable]
push:
branches: [ master ]
paths-ignore:

View file

@ -9,6 +9,8 @@ on:
test_asset_builder:
type: boolean
description: Test the assets builder
repository_dispatch:
types: [stable]
push:
branches: [ master ]
paths-ignore:

View file

@ -6,6 +6,9 @@ on:
new_release:
type: boolean
description: Force new Release
force_dispatch:
type: boolean
description: Force dispatch
schedule:
- cron: '0 18 * * *'
@ -69,31 +72,19 @@ jobs:
GITHUB_USERNAME: ${{ github.repository_owner }}
if: env.SHOULD_BUILD == 'yes'
- name: Prepare assets
- name: Prepare source
run: ./prepare_src.sh
if: env.SHOULD_BUILD == 'yes'
- name: Release
- name: Release source
env:
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.repository_owner }}
run: ./release.sh
if: env.SHOULD_BUILD == 'yes'
- name: Dispatch Linux build
- name: Dispatch builds
uses: peter-evans/repository-dispatch@v2
with:
event-type: 'stable-linux'
if: env.SHOULD_BUILD == 'yes'
- name: Dispatch Windows build
uses: peter-evans/repository-dispatch@v2
with:
event-type: 'stable-windows'
if: env.SHOULD_BUILD == 'yes'
- name: Dispatch macOS build
uses: peter-evans/repository-dispatch@v2
with:
event-type: 'stable-macos'
if: env.SHOULD_BUILD == 'yes'
event-type: 'stable'
if: env.SHOULD_BUILD == 'yes' || github.event.inputs.force_dispatch == 'true'

View file

@ -9,6 +9,8 @@ on:
test_asset_builder:
type: boolean
description: Test the assets builder
repository_dispatch:
types: [stable]
push:
branches: [ master ]
paths-ignore: