Skip to content
Snippets Groups Projects

Resolve "Automatically tag latest version"

Merged Jean-Baptiste Bayle requested to merge 110-automatically-tag-latest-version into master
1 file
+ 13
0
Compare changes
  • Side-by-side
  • Inline
+ 13
0
@@ -37,6 +37,19 @@ dist:
paths:
- dist
tag-latest:
stage: deploy
image: alpine/git
script:
- git config user.email "${GITLAB_USER_EMAIL}"
- git config user.name "${GITLAB_USER_NAME}"
- git remote add tag-origin https://oauth2:${GITLAB_ACCESS_TOKEN}@gitlab.in2p3.fr/${CI_PROJECT_PATH}
- git push --delete tag-origin latest
- git tag latest
- git push tag-origin latest
rules:
- if: '$CI_COMMIT_TAG =~ /^v\d+(?:\.\d+){0,2}$/'
pypi:
stage: deploy
script:
Loading