Fix libs directory in GH CI #27
This file contains hidden or 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: Subsplit Libraries | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| branches: | |
| - '*' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| subsplit: | |
| name: Split Packages (${{ matrix.package.local_path }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| package: | |
| - local_path: 'libs/parser' | |
| split_repository: 'parser' | |
| - local_path: 'libs/phpdoc' | |
| split_repository: 'phpdoc' | |
| - local_path: 'libs/printer' | |
| split_repository: 'printer' | |
| - local_path: 'libs/types' | |
| split_repository: 'types' | |
| # - local_path: 'docs' | |
| # split_repository: 'docs' | |
| steps: | |
| - uses: actions/checkout@v7 | |
| # no tag | |
| - if: "!startsWith(github.ref, 'refs/tags/')" | |
| name: Monorepo Split of ${{ matrix.package.split_repository }} | |
| uses: danharrin/monorepo-split-github-action@v2.4.5 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
| with: | |
| branch: "master" | |
| package_directory: '${{ matrix.package.local_path }}' | |
| repository_organization: 'php-type-language' | |
| repository_name: '${{ matrix.package.split_repository }}' | |
| user_name: "SerafimArts" | |
| user_email: "nesk@xakep.ru" | |
| # with tag | |
| - if: "startsWith(github.ref, 'refs/tags/')" | |
| name: Monorepo Tagged Split of ${{ matrix.package }} | |
| uses: danharrin/monorepo-split-github-action@v2.4.5 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
| with: | |
| tag: ${GITHUB_REF#refs/tags/} | |
| branch: "master" | |
| package_directory: '${{ matrix.package.local_path }}' | |
| repository_organization: 'php-type-language' | |
| repository_name: '${{ matrix.package.split_repository }}' | |
| user_name: "SerafimArts" | |
| user_email: "nesk@xakep.ru" |