summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Steinbeiss <simon.steinbeiss@elfenbeinturm.at>2021-09-07 00:45:14 +0200
committerSimon Steinbeiss <simon.steinbeiss@redhat.com>2021-09-07 00:46:53 +0200
commitdbfc8c88b56962e85bfdc2b444dcd49d99ddd30c (patch)
treee446b6c7a43d4c27f716a3e518777762fdf8cce2
parentef3ca47e7c8e489ef167abadafa03900c3ee362b (diff)
downloadxfce4-dev-tools-dbfc8c88b56962e85bfdc2b444dcd49d99ddd30c.tar.gz
gitlabci: Add release stage that retains tarballs
This stage is only run for tags and is essentially the same as the distcheck stage.
-rw-r--r--ci/build_project.yml23
1 files changed, 20 insertions, 3 deletions
diff --git a/ci/build_project.yml b/ci/build_project.yml
index c077c4e..2ff7117 100644
--- a/ci/build_project.yml
+++ b/ci/build_project.yml
@@ -11,6 +11,7 @@ workflow:
stages:
- build
- distcheck
+ - release
translations:
extends: .translation
@@ -26,10 +27,21 @@ build:
- make
distcheck:
- extends: .make
+ extends: .distcheck
stage: distcheck
- script:
- - make distcheck
+ rules:
+ - if: $CI_COMMIT_TAG
+ when: never
+
+release:
+ extends: .distcheck
+ stage: release
+ artifacts:
+ paths:
+ - ./*.tar.bz2
+ expire_in: never
+ rules:
+ - if: $CI_COMMIT_TAG
.make:
before_script:
@@ -47,6 +59,11 @@ distcheck:
# Otherwise, always run
- when: always
+.distcheck:
+ extends: .make
+ script:
+ - make distcheck
+
.translation:
rules:
# If there are changes to .po, run this job