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:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG
|
- if: $CI_COMMIT_TAG
|
||||||
when: never
|
when: never
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
- if: $CI_COMMIT_BRANCH == 'release'
|
||||||
variables:
|
variables:
|
||||||
# Disable shallow cloning so that svu can diff between tags
|
# Disable shallow cloning so that svu can diff between tags
|
||||||
GIT_DEPTH: 0
|
GIT_DEPTH: 0
|
||||||
|
|
@ -48,7 +48,7 @@ release:
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG
|
- if: $CI_COMMIT_TAG
|
||||||
when: never
|
when: never
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
- if: $CI_COMMIT_BRANCH == 'release'
|
||||||
script:
|
script:
|
||||||
- echo "Creating release for $TAG"
|
- echo "Creating release for $TAG"
|
||||||
release:
|
release:
|
||||||
|
|
|
||||||
Reference in a new issue