Skip to content

Merge branch 'release/v2.4.0' #597

Merge branch 'release/v2.4.0'

Merge branch 'release/v2.4.0' #597

Workflow file for this run

name: 'Packages Split'
on:
push:
branches:
- main
- develop
tags:
- '*'
env:
# 1. for Github split -- Based on PAT https://github.com/settings/tokens/1122824921
GITHUB_TOKEN: ${{ secrets.ROADIZ_SPLIT_ACCESS_TOKEN }}
jobs:
packages_split:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# define package to repository map
package:
-
local_path: 'DocGenerator'
split_repository: 'doc-generator'
default_branch: 'main'
-
local_path: 'Documents'
split_repository: 'documents'
default_branch: 'master'
-
local_path: 'DtsGenerator'
split_repository: 'dts-generator'
default_branch: 'main'
-
local_path: 'EntityGenerator'
split_repository: 'entity-generator'
default_branch: 'main'
-
local_path: 'Jwt'
split_repository: 'jwt'
default_branch: 'main'
-
local_path: 'Markdown'
split_repository: 'markdown'
default_branch: 'master'
-
local_path: 'Models'
split_repository: 'models'
default_branch: 'master'
-
local_path: 'OpenId'
split_repository: 'openid'
default_branch: 'main'
-
local_path: 'Random'
split_repository: 'random'
default_branch: 'main'
-
local_path: 'RoadizCompatBundle'
split_repository: 'compat-bundle'
default_branch: 'main'
-
local_path: 'RoadizCoreBundle'
split_repository: 'core-bundle'
default_branch: 'main'
-
local_path: 'RoadizFontBundle'
split_repository: 'font-bundle'
default_branch: 'main'
-
local_path: 'RoadizRozierBundle'
split_repository: 'rozier-bundle'
default_branch: 'main'
-
local_path: 'RoadizUserBundle'
split_repository: 'user-bundle'
default_branch: 'main'
-
local_path: 'Rozier'
split_repository: 'rozier'
default_branch: 'main'
-
local_path: 'RoadizTwoFactorBundle'
split_repository: 'two-factor-bundle'
default_branch: 'main'
steps:
- uses: actions/checkout@v2
# no tag
- if: github.ref == 'refs/heads/develop'
uses: "danharrin/[email protected]"
with:
# ↓ split "lib/local_path" directory
package_directory: 'lib/${{ matrix.package.local_path }}'
# ↓ into https://github.com/roadiz/split_repository repository
repository_organization: 'roadiz'
branch: develop
repository_name: '${{ matrix.package.split_repository }}'
# ↓ the user signed under the split commit
user_name: "roadiz-ci"
user_email: "[email protected]"
- if: github.ref == 'refs/heads/main'
uses: "danharrin/[email protected]"
with:
# ↓ split "lib/local_path" directory
package_directory: 'lib/${{ matrix.package.local_path }}'
# ↓ into https://github.com/roadiz/split_repository repository
repository_organization: 'roadiz'
branch: ${{ matrix.package.default_branch }}
repository_name: '${{ matrix.package.split_repository }}'
# ↓ the user signed under the split commit
user_name: "roadiz-ci"
user_email: "[email protected]"
# with tag
- if: "startsWith(github.ref, 'refs/tags/')"
uses: "danharrin/[email protected]"
with:
tag: ${GITHUB_REF#refs/tags/}
# ↓ split "lib/local_path" directory
package_directory: 'lib/${{ matrix.package.local_path }}'
branch: ${{ matrix.package.default_branch }}
# ↓ into https://github.com/roadiz/split_repository repository
repository_organization: 'roadiz'
repository_name: '${{ matrix.package.split_repository }}'
# ↓ the user signed under the split commit
user_name: "roadiz-ci"
user_email: "[email protected]"