Update .gitlab-ci.yml file

This commit is contained in:
Slava
2023-08-26 21:18:07 +00:00
parent 3433bfb2d0
commit 7979fcb121

View File

@@ -21,21 +21,22 @@ stages: # List of stages for jobs, and their order of execution
release_job:
rules:
- if: $CI_COMMIT_TAG
when: never # Do not run this job when a tag is created manually
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
stage: release # It only runs when *both* jobs in the test stage complete successfully.
image: registry.gitlab.com/gitlab-org/release-cli:latest
script:
- echo "Release WPE 2.0_$CI_COMMIT_SHORT_SHA"
- rm .gitlab-ci.yml
- rm CHANGELOG
- rm README.md
except:
refs:
- tags
release:
# tag_name: $CI_COMMIT_SHORT_SHA
tag_name: $CI_COMMIT_SHORT_SHA
name: 'WPE 2.0_$CI_COMMIT_SHORT_SHA'
description: '$CI_COMMIT_MESSAGE'