Do a release automatically using ci/cd when tag is created

This commit is contained in:
Julien Fastré 2023-06-26 11:05:20 +00:00
parent 27f797d736
commit cd7a80b680

View File

@ -34,6 +34,7 @@ variables:
stages: stages:
- Composer install - Composer install
- Tests - Tests
- Deploy
build: build:
stage: Composer install stage: Composer install
@ -121,3 +122,14 @@ unit_tests:
paths: paths:
- bin - bin
- tests/app/vendor/ - tests/app/vendor/
release:
stage: Deploy
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: $CI_COMMIT_TAG
script:
- echo "running release_job"
release:
tag_name: '$CI_COMMIT_TAG'
description: "./.changes/v$CI_COMMIT_TAG.md"