Skip to content
Snippets Groups Projects
Commit 33b25db4 authored by sandcha's avatar sandcha
Browse files

Merge branch 'tag-in-ci' into 'master'

Tag en CI GitLab au merge sur master

See merge request leximpact/openfisca-france-dotations-locales!23
parents 797faf8c 046fd474
No related branches found
No related tags found
1 merge request!23Tag en CI GitLab au merge sur master
Pipeline #6249 skipped
#! /usr/bin/env bash
git tag `python setup.py --version`
git push --tags # update the repository version
# push tag to GitLab thanks to our GITLAB_API_ACCESS_TOKEN
# and predefined variables (see https://docs.gitlab.com/ee/ci/variables/predefined_variables.html)
# TODO move from .gitlab-ci.yml into here :
# git push --tags -o ci.skip "https://${CI_REGISTRY_USER}:${GITLAB_API_ACCESS_TOKEN}@${CI_REPOSITORY_URL#*@}"
image: python:3.7
variables:
GIT_EMAIL: leximpact@an.fr
GIT_AUTHOR_NAME: leximpact-bot
PYPI_USERNAME: leximpact-bot
stages:
......@@ -77,11 +75,8 @@ deploy:
needs: ["build"]
script:
- if ! .ci/has-functional-changes.sh ; then exit 1 ; fi
- git config user.email "${GIT_EMAIL}"
- git config user.name "${GIT_AUTHOR_NAME}"
- git remote rm origin
- git remote add origin https://oauth2:${GITLAB_ACCESS_TOKEN}@gitlab.com/${CI_PROJECT_PATH}
- .ci/publish-git-tag.sh
- git push --tags -o ci.skip "https://${CI_REGISTRY_USER}:${GITLAB_API_ACCESS_TOKEN}@${CI_REPOSITORY_URL#*@}"
- twine upload dist/* --username $PYPI_USERNAME --password $PYPI_PASSWORD
only:
- master
......
# Changelog
### 0.7.7 [!23](https://git.leximpact.dev/leximpact/openfisca-france-dotations-locales/-/merge_requests/23)
* Amélioration technique.
* Périodes concernées : toutes.
* Zones impactées : non applicable
* Détails :
- Ajoute le git tag automatique en GitLab CI.
### 0.7.6 [!21](https://git.leximpact.dev/openfisca/openfisca-france-dotations-locales/-/merge_requests/21)
* Amélioration technique.
......
......@@ -4,7 +4,7 @@ from setuptools import setup, find_packages
setup(
name = "OpenFisca-France-Dotations-Locales",
version = "0.7.6",
version = "0.7.7",
author = "LexImpact Team",
author_email = "leximpact@an.fr",
classifiers=[
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment