Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get the Artifact files built on the before step #54

Open
liuzel01 opened this issue Apr 16, 2024 · 0 comments
Open

Cannot get the Artifact files built on the before step #54

liuzel01 opened this issue Apr 16, 2024 · 0 comments

Comments

@liuzel01
Copy link

liuzel01 commented Apr 16, 2024

this is content of my packages-release.yml:

but when the Actions done, the split repo https://github.com/example/administration.git does not have the src/Administration/Resources/public

so how can i get the new generated directory or files be splitted to the new repo ?

best regards.

image
name: 'Packages Release'
on:
  push:
    branches:
      - 'trunk'
    paths:
      - src/Administration/**/*
env:
  GITHUB_TOKEN: ${{ secrets.TOKEN }}
jobs:
  jobs-split: 
    runs-on: ubuntu-latest
    strategy:
      matrix:
        package:
          -
            local_path: 'Administration'
            split_repository: 'administration'
    steps:
      - name: Checkout Repository
        uses: actions/checkout@v4
      - name: Build Administration 
        run: |
          cd src/Administration/Resources
          mkdir -p public/static
          echo ${{ github.sha }} > public/static/Release.txt
      - name: Test Administration
        run: |
          ls -lht src/Administration/Resources/public 
      - name: Split Monorepo Without Tag 
        if: "!startsWith(github.ref, 'refs/tags/')"
        uses: "danharrin/monorepo-split-github-action@v2.3.0"
        with:
          package_directory: 'src/Administration'
          repository_organization: 'example'
          repository_name: '${{ matrix.package.split_repository }}'
          branch: 'trunk'
          user_name: "example"
          user_email: "example@gmail.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant