diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 80aa8dd98..93bfc2cf0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,6 +11,7 @@ stages: - checkformat - build - test + - deploy variables: # CMake build directory. @@ -29,3 +30,4 @@ include: - "/ci/build.windows.gitlab-ci.yml" - "/ci/test.linux.gitlab-ci.yml" - "/ci/test.windows.gitlab-ci.yml" + - "/ci/deploy.gitlab-ci.yml" diff --git a/ci/deploy.gitlab-ci.yml b/ci/deploy.gitlab-ci.yml new file mode 100644 index 000000000..845a688bb --- /dev/null +++ b/ci/deploy.gitlab-ci.yml @@ -0,0 +1,12 @@ + # Push a nightly tag if the pipeline succeeded. +deploy:tag: + stage: deploy + script: + - git tag nightly master + - git push https://sillyprof:$EIGEN_CI_ACCESS_TOKEN@gitlab.com/libeigen/eigen.git master tag nightly + tags: + - linux + - eigen-runner + rules: + - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_NAMESPACE == "libeigen" + - if: $CI_PIPELINE_SOURCE == "web" && $CI_PROJECT_NAMESPACE == "libeigen"