Skip to content

Dicd/symplify #445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.gitsplit.yml export-ignore
/monorepo-builder.php export-ignore
/CODE_OF_CONDUCT.md export-ignore
/deptrac.yaml export-ignore
/ecs.php export-ignore
Expand Down
139 changes: 130 additions & 9 deletions .github/workflows/gitsplit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,137 @@ on:
push:
tags:
- '*'
release:
types: [published]

env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

jobs:
gitsplit:
packages_split:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
# define package to repository map
package:
-
local_path: 'src/Component/Core'
split_repository: 'jwt-core'
-
local_path: 'src/Component/Checker'
split_repository: 'jwt-checker'
-
local_path: 'src/Component/Signature'
split_repository: 'jwt-signature'
-
local_path: 'src/Component/Encryption'
split_repository: 'jwt-encryption'
-
local_path: 'src/Component/KeyManagement'
split_repository: 'jwt-key-mgmt'
-
local_path: 'src/Component/Console'
split_repository: 'jwt-console'
-
local_path: 'src/Component/NestedToken'
split_repository: 'jwt-nested-token'
-
local_path: 'src/Bundle/JoseFramework'
split_repository: 'jwt-bundle'
-
local_path: 'src/EncryptionAlgorithm/ContentEncryption/AESCBC'
split_repository: 'jwt-encryption-algorithm-aescbc'
-
local_path: 'src/EncryptionAlgorithm/ContentEncryption/AESGCM'
split_repository: 'jwt-encryption-algorithm-aesgcm'
-
local_path: 'src/EncryptionAlgorithm/KeyEncryption/AESGCMKW'
split_repository: 'jwt-encryption-algorithm-aesgcmkw'
-
local_path: 'src/EncryptionAlgorithm/KeyEncryption/AESKW'
split_repository: 'jwt-encryption-algorithm-aeskw'
-
local_path: 'src/EncryptionAlgorithm/KeyEncryption/Direct'
split_repository: 'jwt-encryption-algorithm-dir'
-
local_path: 'src/EncryptionAlgorithm/KeyEncryption/ECDHES'
split_repository: 'jwt-encryption-algorithm-ecdh-es'
-
local_path: 'src/EncryptionAlgorithm/KeyEncryption/PBES2'
split_repository: 'jwt-encryption-algorithm-pbes2'
-
local_path: 'src/EncryptionAlgorithm/KeyEncryption/RSA'
split_repository: 'jwt-encryption-algorithm-rsa'
-
local_path: 'src/SignatureAlgorithm/ECDSA'
split_repository: 'jwt-signature-algorithm-ecdsa'
-
local_path: 'src/SignatureAlgorithm/EdDSA'
split_repository: 'jwt-signature-algorithm-eddsa'
-
local_path: 'src/SignatureAlgorithm/None'
split_repository: 'jwt-signature-algorithm-none'
-
local_path: 'src/SignatureAlgorithm/HMAC'
split_repository: 'jwt-signature-algorithm-hmac'
-
local_path: 'src/SignatureAlgorithm/RSA'
split_repository: 'jwt-signature-algorithm-rsa'
-
local_path: 'src/SignatureAlgorithm/Experimental'
split_repository: 'jwt-signature-algorithm-experimental'
-
local_path: 'src/EncryptionAlgorithm/Experimental'
split_repository: 'jwt-encryption-algorithm-experimental'
-
local_path: 'src/Ecc'
split_repository: 'jwt-util-ecc'
-
local_path: 'packs/encryption'
split_repository: 'encryption-pack'
-
local_path: 'packs/signature'
split_repository: 'signature-pack'

steps:
- name: checkout
run: git clone https://github.com/web-token/jwt-framework /home/runner/work/web-token/jwt-framework && cd /home/runner/work/web-token/jwt-framework
- name: Split repositories
run: docker run --rm -t -e GH_TOKEN -v /cache/gitsplit:/cache/gitsplit -v /home/runner/work/web-token/jwt-framework:/srv jderusse/gitsplit gitsplit
env:
GH_TOKEN: ${{ secrets.GITSPLIT_TOKEN }}
- uses: actions/checkout@v2

# no tag
-
if: "!startsWith(github.ref, 'refs/tags/')"
uses: "symplify/[email protected]"
with:
# ↓ split "src/*" directory
package_directory: '${{ matrix.package.local_path }}'

# ↓ into https://github.com/web-token/* repository
repository_organization: 'web-token'
repository_name: '${{ matrix.package.split_repository }}'

# [optional, with "github.com" as default]
#repository_host: git.private.com:1234

# ↓ the user signed under the split commit
user_name: "Florent Morselli"
user_email: "[email protected]"

# with tag
-
if: "startsWith(github.ref, 'refs/tags/')"
uses: "symplify/[email protected]"
with:
tag: ${GITHUB_REF#refs/tags/}

# ↓ split "src/*" directory
package_directory: '${{ matrix.package.local_path }}'

# ↓ into https://github.com/web-token/* repository
repository_organization: 'web-token'
repository_name: '${{ matrix.package.split_repository }}'

# [optional, with "github.com" as default]
#repository_host: git.private.com:1234

# ↓ the user signed under the split commit
user_name: "Florent Morselli"
user_email: "[email protected]"
23 changes: 0 additions & 23 deletions .github/workflows/tweet.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .gitsplit.yml

This file was deleted.

Loading