I want to automate releases
The YAML file is:
stages: # List of stages for jobs, and their order of execution
- release
release_job:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: $CI_COMMIT_TAG # Run this job when a tag is created
script:
- echo "running release_job"
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: '$CI_COMMIT_TAG'
description: '$CI_COMMIT_TAG'
I’ve read these blog posts
[Tutorial: Automate releases and release notes with GitLab](https://automate releases) and https://about.gitlab.com/blog/2020/05/07/how-gitlab-automates-releases/
the log console is:
$ echo "running release_job"
running release_job
Executing "step_release" stage of the job script
00:00
$ release-cli create --description "v1.2.4" --tag-name "v1.2.4"
bash: line 138: release-cli: command not found