forked from baserproject/basercms
-
Notifications
You must be signed in to change notification settings - Fork 1
99 lines (95 loc) · 3.61 KB
/
split_monorepo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
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"