v0.2.3 #18
Workflow file for this run
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: Split releases | |
| on: | |
| release: | |
| types: ['published'] | |
| concurrency: | |
| group: split | |
| env: | |
| GH_TOKEN: ${{ secrets.SUBSPLIT_WRITE_ACCESS }} | |
| jobs: | |
| split: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| package: | |
| - { folder: actor, repo: module-actor } | |
| - { folder: agent, repo: module-agent } | |
| - { folder: bootloader, repo: module-bootloader } | |
| - { folder: migration, repo: module-migration } | |
| - { folder: relay, repo: module-relay } | |
| - { folder: security, repo: module-security } | |
| - { folder: terminal, repo: module-terminal } | |
| - { folder: test, repo: module-test } | |
| - { folder: views, repo: module-views } | |
| - { folder: llm, repo: module-llm } | |
| - { folder: usage, repo: module-usage } | |
| - { folder: docs, repo: module-docs } | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - run: | | |
| split_sha=`git subtree split --prefix=src/${{ matrix.package.folder }}` | |
| repo_url="https://${{ secrets.SUBSPLIT_WRITE_ACCESS }}@github.com/wippyai/${{ matrix.package.repo }}.git" | |
| if [ -z $(git ls-remote --tags "$repo_url" | grep "$split_sha") ]; then \ | |
| gh release create ${{ github.ref_name }} \ | |
| --repo wippyai/${{ matrix.package.repo }} \ | |
| --target "$split_sha" \ | |
| --generate-notes \ | |
| --notes '[Full release information in Wippy Framework monorepo](https://github.com/wippyai/typhoon/releases/tag/${{ github.ref_name }}).'; \ | |
| fi |