-
Notifications
You must be signed in to change notification settings - Fork 519
45 lines (37 loc) · 1.23 KB
/
monorepo-split.yml
File metadata and controls
45 lines (37 loc) · 1.23 KB
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
name: Split providers into their individual repos
on:
push:
branches:
- master
jobs:
split:
name: Split Providers
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.5'
coverage: none
- name: Install dependencies
run: composer install --no-interaction --prefer-dist
- name: Create repos for new providers
run: php tools/create-repos.php "${{ github.sha }}" "${{ github.repository }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_PUSH_TOKEN }}
- name: Install splitsh-lite
run: |
mkdir -p /tmp/splitsh
wget -qO /tmp/splitsh/splitsh-lite.tar.gz https://github.com/splitsh/lite/releases/download/v1.0.1/lite_linux_amd64.tar.gz
tar -zxf /tmp/splitsh/splitsh-lite.tar.gz -C /tmp/splitsh
sudo mv /tmp/splitsh/splitsh-lite /usr/local/bin/splitsh-lite
- name: Split packages
run: ./tools/split.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_PUSH_TOKEN }}
MAX_PARALLEL: '8'