Merge branch 'main' of gl.beaconborn.ru:bacon/weapon-project-extended
This commit is contained in:
@@ -21,15 +21,23 @@ stages: # List of stages for jobs, and their order of execution
|
|||||||
|
|
||||||
|
|
||||||
release_job:
|
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.
|
stage: release # It only runs when *both* jobs in the test stage complete successfully.
|
||||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- echo "Release WPE 2.0_$CI_COMMIT_SHORT_SHA"
|
- echo "Release WPE 2.0_$CI_COMMIT_SHORT_SHA"
|
||||||
|
- rm -rf .vs
|
||||||
- rm .gitlab-ci.yml
|
- rm .gitlab-ci.yml
|
||||||
- rm CHANGELOG
|
- rm CHANGELOG
|
||||||
- rm README.md
|
- rm README.md
|
||||||
|
|
||||||
release:
|
release:
|
||||||
tag_name: $CI_COMMIT_SHORT_SHA
|
tag_name: v2.0.$CI_PIPELINE_IID
|
||||||
name: 'WPE 2.0_$CI_COMMIT_SHORT_SHA'
|
name: 'WPE 2.0_$CI_COMMIT_SHORT_SHA'
|
||||||
description: '$CI_COMMIT_MESSAGE'
|
description: '$CI_COMMIT_MESSAGE'
|
||||||
Reference in New Issue
Block a user