Update .gitlab-ci.yml file

This commit is contained in:
Lee 2023-03-08 14:05:24 +00:00
parent 68d2f2977c
commit 4367d014b7

@ -37,9 +37,9 @@ release:
when: never # Do not run this job when a tag is created manually when: never # Do not run this job when a tag is created manually
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
script: script:
- echo "running release for $TAG" - echo "running release for $CI_COMMIT_TAG"
release: release:
name: 'Release $TAG' name: 'Release $CI_COMMIT_TAG'
description: 'Created using the release-cli $EXTRA_DESCRIPTION' # $EXTRA_DESCRIPTION and the $TAG description: 'Created using the release-cli $EXTRA_DESCRIPTION' # $EXTRA_DESCRIPTION and the $TAG
tag_name: '$TAG' # variables must be defined elsewhere tag_name: '$CI_COMMIT_TAG' # variables must be defined elsewhere
ref: '$CI_COMMIT_SHA' # in the pipeline. For example, in the ref: '$CI_COMMIT_SHA' # in the pipeline. For example, in the