ci: run tagging and releasing only on 'release' branch
This commit is contained in:
parent
c3cc6749a5
commit
8fd2dffcb9
1 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ semver-tag:
|
|||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
when: never
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
- if: $CI_COMMIT_BRANCH == 'release'
|
||||
variables:
|
||||
# Disable shallow cloning so that svu can diff between tags
|
||||
GIT_DEPTH: 0
|
||||
|
|
@ -48,7 +48,7 @@ release:
|
|||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
when: never
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
- if: $CI_COMMIT_BRANCH == 'release'
|
||||
script:
|
||||
- echo "Creating release for $TAG"
|
||||
release:
|
||||
|
|
|
|||
Reference in a new issue