mirror of
https://github.com/flarum/core.git
synced 2025-08-05 07:57:46 +02:00
feat: dispatch event to flarum/installation-packages
on release (#3625)
This commit is contained in:
1
.github/workflows/REUSABLE_backend.yml
vendored
1
.github/workflows/REUSABLE_backend.yml
vendored
@@ -31,6 +31,7 @@ on:
|
|||||||
description: Versions of PHP to test with. Should be array of strings encoded as JSON array
|
description: Versions of PHP to test with. Should be array of strings encoded as JSON array
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
|
# Keep PHP versions synced with build-install-packages.yml
|
||||||
default: '["8.1", "8.2", "8.3"]'
|
default: '["8.1", "8.2", "8.3"]'
|
||||||
|
|
||||||
php_extensions:
|
php_extensions:
|
||||||
|
29
.github/workflows/build-install-packages.yml
vendored
Normal file
29
.github/workflows/build-install-packages.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
name: Build Install Packages
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [released]
|
||||||
|
|
||||||
|
env:
|
||||||
|
VERSION: ${{ github.event.release.tag_name }}
|
||||||
|
PHP_VERSIONS: '8.1 8.2 8.3'
|
||||||
|
INSTALL_PACKAGES_INPUTS: '{ "flarum_version": "{0}", "php_versions": "{1}" }'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
delay:
|
||||||
|
name: Wait for packagist to publish new packages
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: sleep 30m
|
||||||
|
|
||||||
|
build:
|
||||||
|
name: Build Installation Packages
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Trigger build in flarum/installation-packages
|
||||||
|
uses: benc-uk/workflow-dispatch@v1
|
||||||
|
with:
|
||||||
|
workflow: Build Flarum Install Packages
|
||||||
|
repo: flarum/installation-packages
|
||||||
|
token: ${{ secrets.PACKAGES_BUILD_TOKEN }}
|
||||||
|
inputs: ${{ format(env.INSTALL_PACKAGES_INPUTS, env.VERSION, env.PHP_VERSIONS) }}
|
Reference in New Issue
Block a user