Skip to content

Merge pull request #4025 from HungDV2022/unittest_BlogCommentMailer_s… #657

Merge pull request #4025 from HungDV2022/unittest_BlogCommentMailer_s…

Merge pull request #4025 from HungDV2022/unittest_BlogCommentMailer_s… #657

name: 'Packages Split'
on:
push:
branches:
- 5.0.x
- 5.1.x
tags:
- '*'
jobs:
packages_split:
runs-on: ubuntu-latest
environment: develop
strategy:
fail-fast: false
matrix:
package:
- local_path: 'baser-core'
split_repository: 'baser-core'
- local_path: 'bc-admin-third'
split_repository: 'bc-admin-third'
- local_path: 'bc-blog'
split_repository: 'bc-blog'
- local_path: 'bc-content-link'
split_repository: 'bc-content-link'
- local_path: 'bc-custom-content'
split_repository: 'bc-custom-content'
- local_path: 'bc-editor-template'
split_repository: 'bc-editor-template'
- local_path: 'bc-favorite'
split_repository: 'bc-favorite'
- local_path: 'bc-front'
split_repository: 'bc-front'
- local_path: 'bc-installer'
split_repository: 'bc-installer'
- local_path: 'bc-mail'
split_repository: 'bc-mail'
- local_path: 'bc-search-index'
split_repository: 'bc-search-index'
- local_path: 'bc-theme-config'
split_repository: 'bc-theme-config'
- local_path: 'bc-theme-file'
split_repository: 'bc-theme-file'
- local_path: 'bc-uploader'
split_repository: 'bc-uploader'
- local_path: 'bc-widget-area'
split_repository: 'bc-widget-area'
- local_path: 'BcColumn'
split_repository: 'BcColumn'
- local_path: 'BcThemeSample'
split_repository: 'BcThemeSample'
- local_path: 'BcPluginSample'
split_repository: 'BcPluginSample'
steps:
- uses: actions/checkout@v3
- name: Monorepo Tagged Split Stable
# タグと安定版のブランチを分割する
if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-')
uses: symplify/monorepo-split-github-action@v2.3.0
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
tag: ${GITHUB_REF#refs/tags/}
package_directory: 'plugins/${{ matrix.package.local_path }}'
repository_organization: 'baserproject'
repository_name: '${{ matrix.package.split_repository }}'
branch: "master"
user_name: "ryuring"
user_email: "ryuring55@gmail.com"
- name: Monorepo Tagged Split Alpha or Beta or Rc
# タグと開発版のブランチを分割する
if: startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-')
uses: symplify/monorepo-split-github-action@v2.3.0
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
tag: ${GITHUB_REF#refs/tags/}
package_directory: 'plugins/${{ matrix.package.local_path }}'
repository_organization: 'baserproject'
repository_name: '${{ matrix.package.split_repository }}'
branch: "dev-5"
user_name: "ryuring"
user_email: "ryuring55@gmail.com"
- name: Monorepo Split Develop
# 開発版のブランチのみを分割する
if: "!startsWith(github.ref, 'refs/tags/')"
uses: symplify/monorepo-split-github-action@v2.3.0
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
package_directory: 'plugins/${{ matrix.package.local_path }}'
repository_organization: 'baserproject'
repository_name: '${{ matrix.package.split_repository }}'
branch: ${{ github.ref_name }}
user_name: "ryuring"
user_email: "ryuring55@gmail.com"