From d299ac904b2371f4dfd065161e855335a5c5c38e Mon Sep 17 00:00:00 2001 From: Slava Date: Sat, 26 Aug 2023 20:09:23 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5f0ac02..ede37ad 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,18 +22,18 @@ default: - apk add zip stages: # List of stages for jobs, and their order of execution - - test + - release -test-job: # This job runs in the deploy stage. - stage: test # It only runs when *both* jobs in the test stage complete successfully. - environment: production - script: - - echo "Prepare to remove git " - - uname -a - - rm -rf .git - - zip -r WPE2.zip * - release: - name: '$CI_COMMIT_SHORT_SHA' - description: '$CI_COMMIT_MESSAGE' +release_job: + stage: release # It only runs when *both* jobs in the test stage complete successfully. + script: + - echo "Prepare to remove git " + - uname -a + - rm -rf .git + - zip -r WPE2.zip * + release: + tag_name: $CI_COMMIT_TAG + name: 'WPE 2.0_$CI_COMMIT_SHORT_SHA' + description: '$CI_COMMIT_MESSAGE' \ No newline at end of file