Fixing unzipping process

This commit is contained in:
Alex Williams
2024-06-22 15:56:24 +01:00
parent b1c2b4efc1
commit 270394fed3

View File

@@ -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: |