diff --git a/.github/workflows/cron_nightly_build.yml b/.github/workflows/cron_nightly_build.yml index 34e13564357f7..ff114474439bf 100644 --- a/.github/workflows/cron_nightly_build.yml +++ b/.github/workflows/cron_nightly_build.yml @@ -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: @@ -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 @@ -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