Add release to .gitlab-ci.yml
This commit is contained in:
parent
0ffef286eb
commit
353ba0ef63
|
@ -4,9 +4,11 @@ image: jmchr/opengl-test-env:latest
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
|
- release
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
VCPKG_ROOT: "/vcpkg"
|
VCPKG_ROOT: "/vcpkg"
|
||||||
|
CMAKE_BUILD_TYPE: "Release"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
|
@ -33,3 +35,18 @@ run_tests:
|
||||||
- export TEST_MODE=1
|
- export TEST_MODE=1
|
||||||
- cd build
|
- cd build
|
||||||
- ./TerraVisor
|
- ./TerraVisor
|
||||||
|
|
||||||
|
release_job:
|
||||||
|
stage: release
|
||||||
|
dependencies:
|
||||||
|
- build
|
||||||
|
script:
|
||||||
|
- cd build
|
||||||
|
- mkdir -p release
|
||||||
|
- cp terravisor release/
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- build/release/
|
||||||
|
|
||||||
|
only:
|
||||||
|
- main
|
Loading…
Reference in New Issue