1. 更新gitlab-ci流水线配置

This commit is contained in:
黄昕 2024-03-14 09:58:32 +08:00
parent dbec3b91e4
commit be5f781a7a
1 changed files with 15 additions and 12 deletions

View File

@ -34,8 +34,11 @@ release_job:
- linux-maven
rules :
- if : $CI_COMMIT_TAG # Run this job when a tag is created
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
script :
- echo "running release_job"
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name : '$CI_COMMIT_TAG'
description: '$CI_COMMIT_TAG'
name : 'Release $CI_COMMIT_TAG'
description: './CHANGELOG.md'