Merge pull request #219 from andreaswolf/add-xml-result #153
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: git@github.com:andreaswolf/fractor-extension-installer.git | |
deploy-key: DEPLOY_KEY_EXTENSION_INSTALLER | |
- path: fractor | |
repository: git@github.com:andreaswolf/fractor-fractor.git | |
deploy-key: DEPLOY_KEY_FRACTOR | |
- path: typo3-fractor | |
repository: git@github.com:andreaswolf/fractor-typo3-fractor.git | |
deploy-key: DEPLOY_KEY_TYPO3_FRACTOR | |
- path: fractor-xml | |
repository: git@github.com:andreaswolf/fractor-xml.git | |
deploy-key: DEPLOY_KEY_XML_FRACTOR | |
- path: fractor-composer-json | |
repository: git@github.com:andreaswolf/fractor-composer-json.git | |
deploy-key: DEPLOY_KEY_COMPOSER_JSON | |
- path: fractor-doc-generator | |
repository: git@github.com:andreaswolf/fractor-doc-generator.git | |
deploy-key: DEPLOY_KEY_DOC_GENERATOR | |
- path: fractor-fluid | |
repository: git@github.com:andreaswolf/fractor-fluid.git | |
deploy-key: DEPLOY_KEY_FLUID | |
- path: fractor-typoscript | |
repository: git@github.com:andreaswolf/fractor-typoscript.git | |
deploy-key: DEPLOY_KEY_TYPOSCRIPT | |
- path: fractor-yaml | |
repository: git@github.com:andreaswolf/fractor-yaml.git | |
deploy-key: DEPLOY_KEY_YAML | |
name: Split subtree packages/${{ matrix.package.path }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # ensure the complete Git history is available | |
- uses: webfactory/ssh-agent@v0.9.0 | |
with: | |
ssh-private-key: ${{ secrets[matrix.package.deploy-key] }} | |
- name: Split and push | |
run: | | |
SPLIT_REF=$(git subtree -P packages/${{ matrix.package.path }} split) | |
git push ${{ matrix.package.repository }} $SPLIT_REF:${{ github.event.ref }} -f |