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