Skip to content
Snippets Groups Projects
Commit e9c7474b authored by Jean-Baptiste Bayle's avatar Jean-Baptiste Bayle
Browse files

Merge branch '110-automatically-tag-latest-version' into 'master'

Resolve "Automatically tag latest version"

Closes #110

See merge request !138
parents c3ebf13a c84b7d1b
No related branches found
No related tags found
1 merge request!138Resolve "Automatically tag latest version"
Pipeline #204019 passed
...@@ -37,6 +37,19 @@ dist: ...@@ -37,6 +37,19 @@ dist:
paths: paths:
- dist - 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: pypi:
stage: deploy stage: deploy
script: script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment