-
-
Notifications
You must be signed in to change notification settings - Fork 104
68 lines (57 loc) · 1.81 KB
/
split.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
name: 'Packages Split'
on:
push:
branches:
- 3.x
tags:
- '*'
env:
GITHUB_TOKEN: ${{ secrets.SUPER_ACCESS_TOKEN }}
jobs:
packages_split:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# define package to repository map
package:
-
local_path: 'AssetManager'
split_repository: 'asset-manager'
- local_path: 'ColorManager'
split_repository: 'color-manager'
- local_path: 'Contracts'
split_repository: 'contracts'
- local_path: 'Core'
split_repository: 'core'
- local_path: 'Laravel'
split_repository: 'laravel'
- local_path: 'MenuManager'
split_repository: 'menu-manager'
- local_path: 'Support'
split_repository: 'support'
- local_path: 'UI'
split_repository: 'ui'
steps:
- uses: actions/checkout@v3
# no tag
-
if: "!startsWith(github.ref, 'refs/tags/')"
uses: "symplify/[email protected]"
with:
package_directory: 'src/${{ matrix.package.local_path }}'
repository_organization: 'moonshine-software'
repository_name: '${{ matrix.package.split_repository }}'
user_name: "moonshine-ci"
user_email: "[email protected]"
# with tag
-
if: "startsWith(github.ref, 'refs/tags/')"
uses: "symplify/[email protected]"
with:
tag: ${GITHUB_REF#refs/tags/}
package_directory: 'src/${{ matrix.package.local_path }}'
repository_organization: 'moonshine-software'
repository_name: '${{ matrix.package.split_repository }}'
user_name: "lee-to"
user_email: "[email protected]"