From 270394fed34bcae734722a083c1cc48829b48d52 Mon Sep 17 00:00:00 2001 From: Alex Williams Date: Sat, 22 Jun 2024 15:56:24 +0100 Subject: [PATCH] Fixing unzipping process --- .github/workflows/autodeploy.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/autodeploy.yml b/.github/workflows/autodeploy.yml index 1182b1d3..45599a23 100644 --- a/.github/workflows/autodeploy.yml +++ b/.github/workflows/autodeploy.yml @@ -74,8 +74,11 @@ jobs: shell: bash run: | mkdir ./build/ - gsutil cp gs://${{ secrets.CORIOLIS_GCP_TARGET_BUCKET }}/${{ env.BUCKET_FOLDER }}/${TARGET_ZIP}_latest.zip ./build/${TARGET_ZIP}_latest.zip - unzip ./build/${TARGET_ZIP}_latest.zip -d ./build/ + EXTENSION="${TARGET_ZIP##*.}" + FILENAME="${TARGET_ZIP%.*}" + LATEST_FILENAME="${FILENAME}_latest.${EXTENSION}" + gsutil cp gs://${{ secrets.CORIOLIS_GCP_TARGET_BUCKET }}/${{ env.BUCKET_FOLDER }}/${LATEST_FILENAME} ./build/${LATEST_FILENAME} + unzip ./build/${LATEST_FILENAME} -d ./build/ - name: Move the build to the web server shell: bash run: |