Skip to content

Commit

Permalink
Merge pull request PrestaShop#37546 from Progi1984/nightlyXML
Browse files Browse the repository at this point in the history
Nightly Build : Generate XML for each branch
  • Loading branch information
jolelievre authored Dec 2, 2024
2 parents 04a58da + 556cc2f commit cfa4393
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/cron_nightly_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
GH_BRANCH: ${{ matrix.BRANCH }}
GC_PROJECT_ID: ${{ secrets.GC_PROJECT_ID }}
GC_SERVICE_KEY: ${{ secrets.GC_SERVICE_KEY }}
XML_FILE: ${{ matrix.BRANCH == 'develop' && 'nightly.xml' || format('nightly_{0}.xml', matrix.BRANCH)}}
ZIP_FILE: ${{ matrix.BRANCH == 'develop' && 'nightly.zip' || format('nightly_{0}.zip', matrix.BRANCH)}}

steps:
Expand Down Expand Up @@ -77,10 +78,11 @@ jobs:
run: today=`date +%Y-%m-%d`; for i in *; do mv $i $today-$GH_BRANCH-$i; done
working-directory: ${{ env.RELEASE_DIR }}

- name: Create nightly.zip for each branch
- name: Create nightly.(zip & xml) for each branch
run: |
today=`date +%Y-%m-%d`
cp $today-$GH_BRANCH*.zip ${{ env.ZIP_FILE }}
cp $today-$GH_BRANCH*.xml ${{ env.XML_FILE }}
working-directory: ${{ env.RELEASE_DIR }}

- name: Auth Cloud Sdk
Expand All @@ -95,6 +97,9 @@ jobs:
- name: Delete last Nightly zip for each branch
run: gsutil rm -rf gs://prestashop-core-nightly/${{ env.ZIP_FILE }}

- name: Delete last Nightly xml for each branch
run: gsutil rm -rf gs://prestashop-core-nightly/${{ env.XML_FILE }}

- name: Upload to Google Cloud Storage (GCS)
if: always()
run: gsutil cp -r "${{ env.RELEASE_DIR }}/**" gs://prestashop-core-nightly

0 comments on commit cfa4393

Please sign in to comment.