1
0
Fork 0

ci: run tagging and releasing only on 'release' branch

This commit is contained in:
Vojtěch Mareš 2024-05-12 15:07:20 +02:00
parent c3cc6749a5
commit 8fd2dffcb9
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -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: