Verified Commit 383b8296 authored by Sebastian Höffner's avatar Sebastian Höffner
Browse files

Using .tar.gz instead of zip to avoid dependencies.

parent 9984985e
Pipeline #132204 passed with stages
in 5 minutes and 32 seconds
......@@ -100,23 +100,24 @@ build-WebGL:
variables:
BUILD_TARGET: WebGL
zip:
image: debian:bullseye-slim
archive_files:
# image: debian:bullseye-slim
stage: package
script:
- pushd $UNITY_DIR/Builds/WebGL
- 'zip -r "$UNITY_DIR/Builds/WebGL/${BUILD_NAME}.zip" "${BUILD_NAME}"'
- 'tar -czf "$UNITY_DIR/Builds/WebGL/${BUILD_NAME}.tar.gz" "${BUILD_NAME}"'
- popd
artifacts:
paths:
- $UNITY_DIR/Builds/WebGL/${BUILD_NAME}.zip
- $UNITY_DIR/Builds/WebGL/${BUILD_NAME}.tar.gz
upload_package:
image: curlimages/curl:latest
stage: deploy
script:
- export PACKAGE_VERSION=$(grep "bundleVersion:" ProjectSettings/ProjectSettings.asset | cut -d':' -f 2 | xargs echo -n)
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "$UNITY_DIR/Builds/WebGL/${BUILD_NAME}.zip" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${BUILD_NAME}/${PACKAGE_VERSION}/${BUILD_NAME}.zip"'
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "$UNITY_DIR/Builds/WebGL/${BUILD_NAME}.tar.gz" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${BUILD_NAME}/${PACKAGE_VERSION}/${BUILD_NAME}.tar.gz"'
only:
- master
......@@ -125,7 +126,7 @@ pages:
stage: deploy
script:
- cp -r "$UNITY_DIR/Builds/WebGL/${BUILD_NAME}" public
- cp "$UNITY_DIR/Builds/WebGL/${BUILD_NAME}.zip" public
- cp "$UNITY_DIR/Builds/WebGL/${BUILD_NAME}.tar.gz" public
artifacts:
paths:
- public
......@@ -135,7 +136,7 @@ pages:
trigger_build:
stage: notify
script:
- curl -X POST -F token=${TRIGGER_TOKEN_DLU} -F ref=${CI_COMMIT_BRANCH} -F "variables[REMOTE_JOB_ID]=${CI_JOB_ID}" -F "variables[REMOTE_FILENAME]=${BUILD_NAME}.zip" ${CI_API_V4_URL}/projects/20800/trigger/pipeline
- curl -X POST -F token=${TRIGGER_TOKEN_DLU} -F ref=${CI_COMMIT_BRANCH} -F "variables[REMOTE_JOB_ID]=${CI_JOB_ID}" -F "variables[REMOTE_FILENAME]=${BUILD_NAME}.tar.gz" ${CI_API_V4_URL}/projects/20800/trigger/pipeline
workflow:
rules:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment