Skip to content
Snippets Groups Projects
Commit ba3466a4 authored by Horváth István's avatar Horváth István
Browse files

Update .gitlab-ci.yml

parent b9e68da9
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
......@@ -116,12 +116,12 @@ test-editmode-with-junit-reports:
- job: get-unity-version
artifacts: true
rules:
- if: '$CI_COMMIT_REF_NAME == "main"'
- if: '$CI_COMMIT_REF_NAME == "main" || $CI_COMMIT_TAG'
#build-StandaloneLinux64:
# <<: *build
# variables:
# BUILD_TARGET: StandaloneLinux64
build-StandaloneLinux64:
<<: *build
variables:
BUILD_TARGET: StandaloneLinux64
build-StandaloneWindows64:
<<: *build
......@@ -151,10 +151,35 @@ pages:
only:
- main
package_registry:
stage: deploy
image: ubuntu:20.04
needs:
- job: build-StandaloneLinux64
- job: build-StandaloneWindows64
- job: build-WebGL
- job: get-unity-version
artifacts: true
rules:
- if: '$CI_COMMIT_TAG && $CI_COMMIT_TAG =~ /^v.*$/'
variables:
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/builds/$CI_COMMIT_TAG"
before_script:
- apt-get update -y
- apt-get install -y zip curl
script:
- zip -r build-StandaloneLinux64.zip ./Builds/StandaloneLinux64/
- zip -r build-StandaloneWindows64.zip ./Builds/StandaloneWindows64/
- zip -r build-WebGL.zip ./Builds/WebGL/${BUILD_NAME}/
- |
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file build-StandaloneLinux64.zip "${PACKAGE_REGISTRY_URL}/StandaloneLinux64-$CI_COMMIT_TAG.zip"
- |
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file build-StandaloneWindows64.zip "${PACKAGE_REGISTRY_URL}/StandaloneWindows64-$CI_COMMIT_TAG.zip"
- |
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file build-WebGL.zip "${PACKAGE_REGISTRY_URL}/WebGL-$CI_COMMIT_TAG.zip"
workflow:
rules:
- if: $CI_MERGE_REQUEST_ID
when: never
- if: $CI_COMMIT_TAG
when: never
- when: always
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment