Skip to content

further integration of EAB with Nucleos [WIP] #1879

further integration of EAB with Nucleos [WIP]

further integration of EAB with Nucleos [WIP] #1879

Workflow file for this run

name: Copy Files to Distribution
on:
push:
branches:
- main
- 3.0
jobs:
copy_kernel:
runs-on: ubuntu-latest
steps:
- name: Branch name
run: echo running on branch ${GITHUB_REF##*/}
- name: Set branch
id: vars
run: |
branch_name=${GITHUB_REF##*/}
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
- name: Copy Kernel.php
uses: andstor/copycat-action@v3
with:
personal_token: ${{ secrets.COPY_DIST_TOKEN }}
src_branch: ${{ steps.vars.outputs.branch_name }}
dst_branch: ${{ steps.vars.outputs.branch_name }}
src_path: /src/Kernel.php
dst_path: /src/Kernel.php
dst_owner: zikula
dst_repo_name: distribution
copy_public:
runs-on: ubuntu-latest
steps:
- name: Set branch
id: vars
run: |
branch_name=${GITHUB_REF##*/}
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
- name: Copy public
uses: andstor/copycat-action@v3
with:
personal_token: ${{ secrets.COPY_DIST_TOKEN }}
src_branch: ${{ steps.vars.outputs.branch_name }}
dst_branch: ${{ steps.vars.outputs.branch_name }}
src_path: /public/
dst_path: /
dst_owner: zikula
dst_repo_name: distribution
copy_templates:
runs-on: ubuntu-latest
steps:
- name: Set branch
id: vars
run: |
branch_name=${GITHUB_REF##*/}
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
- name: Copy templates
uses: andstor/copycat-action@v3
with:
personal_token: ${{ secrets.COPY_DIST_TOKEN }}
src_branch: ${{ steps.vars.outputs.branch_name }}
dst_branch: ${{ steps.vars.outputs.branch_name }}
src_path: /templates/bundles/TranslationBundle/WebUI/
dst_path: /templates/bundles/TranslationBundle/
dst_owner: zikula
dst_repo_name: distribution
copy_translations:
runs-on: ubuntu-latest
steps:
- name: Set branch
id: vars
run: |
branch_name=${GITHUB_REF##*/}
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
- name: Copy translations
uses: andstor/copycat-action@v3
with:
personal_token: ${{ secrets.COPY_DIST_TOKEN }}
src_branch: ${{ steps.vars.outputs.branch_name }}
dst_branch: ${{ steps.vars.outputs.branch_name }}
src_path: /translations/
dst_path: /
dst_owner: zikula
dst_repo_name: distribution
copy_env:
runs-on: ubuntu-latest
steps:
- name: Set branch
id: vars
run: |
branch_name=${GITHUB_REF##*/}
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
- name: Copy .env
uses: andstor/copycat-action@v3
with:
personal_token: ${{ secrets.COPY_DIST_TOKEN }}
src_branch: ${{ steps.vars.outputs.branch_name }}
dst_branch: ${{ steps.vars.outputs.branch_name }}
src_path: /.env
dst_path: /.env
dst_owner: zikula
dst_repo_name: distribution
copy_bundles_php:
runs-on: ubuntu-latest
steps:
- name: Set branch
id: vars
run: |
branch_name=${GITHUB_REF##*/}
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
- name: Copy config/bundles.php
uses: andstor/copycat-action@v3
with:
personal_token: ${{ secrets.COPY_DIST_TOKEN }}
src_branch: ${{ steps.vars.outputs.branch_name }}
dst_branch: ${{ steps.vars.outputs.branch_name }}
src_path: /config/bundles.php
dst_path: /config/bundles.php
dst_owner: zikula
dst_repo_name: distribution
copy_preload_php:
runs-on: ubuntu-latest
steps:
- name: Set branch
id: vars
run: |
branch_name=${GITHUB_REF##*/}
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
- name: Copy config/preload.php
uses: andstor/copycat-action@v3
with:
personal_token: ${{ secrets.COPY_DIST_TOKEN }}
src_branch: ${{ steps.vars.outputs.branch_name }}
dst_branch: ${{ steps.vars.outputs.branch_name }}
src_path: /config/preload.php
dst_path: /config/preload.php
dst_owner: zikula
dst_repo_name: distribution
copy_routes_yaml:
runs-on: ubuntu-latest
steps:
- name: Set branch
id: vars
run: |
branch_name=${GITHUB_REF##*/}
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
- name: Copy config/routes.yaml
uses: andstor/copycat-action@v3
with:
personal_token: ${{ secrets.COPY_DIST_TOKEN }}
src_branch: ${{ steps.vars.outputs.branch_name }}
dst_branch: ${{ steps.vars.outputs.branch_name }}
src_path: /config/routes.yaml
dst_path: /config/routes.yaml
dst_owner: zikula
dst_repo_name: distribution
copy_routes_dev_yaml:
runs-on: ubuntu-latest
steps:
- name: Set branch
id: vars
run: |
branch_name=${GITHUB_REF##*/}
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
- name: Copy config/routes_dev.yaml
uses: andstor/copycat-action@v3
with:
personal_token: ${{ secrets.COPY_DIST_TOKEN }}
src_branch: ${{ steps.vars.outputs.branch_name }}
dst_branch: ${{ steps.vars.outputs.branch_name }}
src_path: /config/routes_dev.yaml
dst_path: /config/routes_dev.yaml
dst_owner: zikula
dst_repo_name: distribution
copy_services_yaml:
runs-on: ubuntu-latest
steps:
- name: Set branch
id: vars
run: |
branch_name=${GITHUB_REF##*/}
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
- name: Copy config/services.yaml
uses: andstor/copycat-action@v3
with:
personal_token: ${{ secrets.COPY_DIST_TOKEN }}
src_branch: ${{ steps.vars.outputs.branch_name }}
dst_branch: ${{ steps.vars.outputs.branch_name }}
src_path: /config/services.yaml
dst_path: /config/services.yaml
dst_owner: zikula
dst_repo_name: distribution
#copy_dynamic:
#runs-on: ubuntu-latest
#steps:
#- name: Set branch
#id: vars
#run: echo ::set-output name=branch_name::${GITHUB_REF##*/}
#- name: Copy config/dynamic/default.yaml
#uses: andstor/copycat-action@v3
#with:
#personal_token: ${{ secrets.COPY_DIST_TOKEN }}
#src_branch: ${{ steps.vars.outputs.branch_name }}
#dst_branch: ${{ steps.vars.outputs.branch_name }}
#src_path: /config/dynamic/default.yaml
#dst_path: /config/dynamic/default.yaml
#dst_owner: zikula
#dst_repo_name: distribution
copy_packages:
runs-on: ubuntu-latest
steps:
- name: Set branch
id: vars
run: |
branch_name=${GITHUB_REF##*/}
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
- name: Copy config/packages/
uses: andstor/copycat-action@v3
with:
personal_token: ${{ secrets.COPY_DIST_TOKEN }}
src_branch: ${{ steps.vars.outputs.branch_name }}
dst_branch: ${{ steps.vars.outputs.branch_name }}
src_path: /config/packages/
#exclude: '*+(/test/|/dev/)*'
dst_path: /config/
dst_owner: zikula
dst_repo_name: distribution
copy_routes:
runs-on: ubuntu-latest
steps:
- name: Set branch
id: vars
run: |
branch_name=${GITHUB_REF##*/}
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
- name: Copy config/routes
uses: andstor/copycat-action@v3
with:
personal_token: ${{ secrets.COPY_DIST_TOKEN }}
src_branch: ${{ steps.vars.outputs.branch_name }}
dst_branch: ${{ steps.vars.outputs.branch_name }}
src_path: /config/routes/
#exclude: '*+(/dev/)*'
dst_path: /config/
dst_owner: zikula
dst_repo_name: distribution
copy_workflows:
runs-on: ubuntu-latest
steps:
- name: Set branch
id: vars
run: |
branch_name=${GITHUB_REF##*/}
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
- name: Copy config/workflows
uses: andstor/copycat-action@v3
with:
personal_token: ${{ secrets.COPY_DIST_TOKEN }}
src_branch: ${{ steps.vars.outputs.branch_name }}
dst_branch: ${{ steps.vars.outputs.branch_name }}
src_path: /config/workflows/
dst_path: /config/
dst_owner: zikula
dst_repo_name: distribution