Skip to content

Merge pull request #513 from loic425/split/0.11 #53

Merge pull request #513 from loic425/split/0.11

Merge pull request #513 from loic425/split/0.11 #53

name: 'Packages Split'
on:
push:
branches:
- 0.9
- 0.10
- 0.11
tags:
- '*'
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
jobs:
packages_split:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# define package to repository map
package:
-
local_path: 'Bridge/Behat'
split_repository: 'BehatBridge'
-
local_path: 'Bridge/SyliusUser'
split_repository: 'SyliusUserBridge'
-
local_path: 'Bundle/CoreBundle'
split_repository: 'CoreBundle'
-
local_path: 'Component/Admin'
split_repository: 'Admin'
-
local_path: 'Component/Core'
split_repository: 'Core'
-
local_path: 'Contracts/Admin'
split_repository: 'AdminContracts'
-
local_path: 'Contracts/Api'
split_repository: 'ApiContracts'
-
local_path: 'Contracts/Core'
split_repository: 'CoreContracts'
-
local_path: 'Contracts/Front'
split_repository: 'FrontContracts'
-
local_path: 'MetaPack/AdminMeta'
split_repository: 'AdminMeta'
-
local_path: 'MetaPack/ApiMeta'
split_repository: 'ApiMeta'
-
local_path: 'MetaPack/CoreMeta'
split_repository: 'CoreMeta'
-
local_path: 'MetaPack/FrontMeta'
split_repository: 'FrontMeta'
-
local_path: 'Pack/AdminPack'
split_repository: 'AdminPack'
-
local_path: 'Pack/ApiPack'
split_repository: 'ApiPack'
-
local_path: 'Pack/CorePack'
split_repository: 'CorePack'
-
local_path: 'Pack/FrontPack'
split_repository: 'FrontPack'
-
local_path: 'Pack/TestPack'
split_repository: 'TestPack'
steps:
- uses: actions/checkout@v2
# no tag
-
if: "!startsWith(github.ref, 'refs/tags/')"
uses: "symplify/[email protected]"
with:
package_directory: 'src/Monofony/${{ matrix.package.local_path }}'
repository_organization: 'Monofony'
repository_name: '${{ matrix.package.split_repository }}'
user_name: "GitHub Action"
user_email: "[email protected]"
branch: '${{ github.ref_name }}'
# with tag
-
if: "startsWith(github.ref, 'refs/tags/')"
uses: "symplify/[email protected]"
with:
tag: ${GITHUB_REF#refs/tags/}
package_directory: 'src/Monofony/${{ matrix.package.local_path }}'
repository_organization: 'Monofony'
repository_name: '${{ matrix.package.split_repository }}'
user_name: "GitHub Action"
user_email: "[email protected]"