Merge pull request #36 from andreaswolf/rename-tests-folder #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- v** | |
jobs: | |
subtree-split: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
package: | |
- path: extension-installer | |
repository: [email protected]:andreaswolf/fractor-extension-installer.git | |
deploy-key: DEPLOY_KEY_EXTENSION_INSTALLER | |
- path: fractor | |
repository: [email protected]:andreaswolf/fractor-fractor.git | |
deploy-key: DEPLOY_KEY_FRACTOR | |
- path: typo3-fractor | |
repository: [email protected]:andreaswolf/fractor-typo3-fractor.git | |
deploy-key: DEPLOY_KEY_TYPO3_FRACTOR | |
- path: fractor-xml | |
repository: [email protected]:andreaswolf/fractor-xml.git | |
deploy-key: DEPLOY_KEY_XML_FRACTOR | |
name: Split subtree ${{ matrix.package.path }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # ensure the complete Git history is available | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets[matrix.package.deploy-key] }} | |
- name: Split and push | |
run: | | |
SPLIT_REF=$(git subtree -P ${{ matrix.package.path }} split) | |
git push ${{ matrix.package.repository }} $SPLIT_REF:${{ github.event.ref }} -f |