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: test_asset_builder:
type: boolean type: boolean
description: Test the assets builder description: Test the assets builder
repository_dispatch:
types: [stable]
push: push:
branches: [ master ] branches: [ master ]
paths-ignore: paths-ignore:

View File

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

View File

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

View File

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