split-packages.yaml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name: 'Package Splitter'
  2. on:
  3. push:
  4. branches:
  5. - main
  6. env:
  7. GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
  8. jobs:
  9. packages_split:
  10. runs-on: ubuntu-latest
  11. strategy:
  12. fail-fast: false
  13. matrix:
  14. # define package to repository map
  15. package:
  16. - local_path: 'markdown-slides'
  17. split_repository: 'starter-hugo-markdown-slides'
  18. - local_path: 'blog'
  19. split_repository: 'hugo-blog-theme'
  20. - local_path: 'documentation'
  21. split_repository: 'hugo-documentation-theme'
  22. - local_path: 'portfolio'
  23. split_repository: 'starter-hugo-portfolio-theme'
  24. - local_path: 'course'
  25. split_repository: 'starter-hugo-online-course'
  26. - local_path: 'minimal'
  27. split_repository: 'hugo-minimal-theme'
  28. - local_path: 'research-group'
  29. split_repository: 'starter-hugo-research-group'
  30. steps:
  31. - uses: actions/checkout@v2
  32. # step if no tag is pushed
  33. - if: "!startsWith(github.ref, 'refs/tags/')"
  34. uses: "symplify/monorepo-split-github-action@2.1"
  35. with:
  36. # ↓ split "packages/<package-name><package-name>" directory
  37. package_directory: 'starters/${{ matrix.package.local_path }}'
  38. # ↓ into https://github.com/wowchemy/<package-name> repository
  39. repository_organization: 'wowchemy'
  40. repository_name: '${{ matrix.package.split_repository }}'
  41. # ↓ the user signed under the split commit
  42. user_name: "Splitter Bot"
  43. user_email: "no.reply@wowchemy.com"