Skip to content
Snippets Groups Projects
Verified Commit aa56f1b8 authored by Geoffrey Arthaud's avatar Geoffrey Arthaud
Browse files

Add update version job

parent 898ae6d9
No related branches found
No related tags found
No related merge requests found
Pipeline #581585 passed
stages:
- release
- deploy
variables: variables:
UV_LINK_MODE: copy UV_LINK_MODE: copy
UV_CACHE_DIR: .uv-cache UV_CACHE_DIR: .uv-cache
...@@ -12,6 +16,19 @@ default: ...@@ -12,6 +16,19 @@ default:
after_script: after_script:
- uv cache prune --ci - uv cache prune --ci
release:
stage: release
script:
- apk add git
- uv add "mkdocs-dsfr>=${RELEASE_VERSION}"
- git config user.email "[email protected]"
- git config user.name "CI Pipeline"
- git add ./pyproject.toml
- git commit -m "Release version ${RELEASE_VERSION}"
- git push https://gitlab-ci-token:${PUSH_TOKEN}@${CI_SERVER_HOST}/$CI_PROJECT_PATH.git HEAD:main --push-option="ci.skip"
rules:
- if: $RELEASE_VERSION
pages: pages:
stage: deploy stage: deploy
script: script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment