jobs:release config release features are not enabled: release

Documentation for release: https://docs.gitlab.com/ee/ci/yaml/#release

It seems like !19298 (merged) added release field in gitlab-ci.yml, but the example configuration cant pass the "CI Lint" with an error message "jobs:release configrelease features are not enabled: release".

My yml:

image: golang:1.13

cache:
  paths:
    - /go/pkg

stages:
  - release


release:
  stage: release
  only: tags
  script:
    - make changelog | tee release_changelog.txt
  release:
    name: Release $CI_TAG_NAME
    tag_name: v0.06
    description: ./release_changelog.txt
    assets:
      links:
        - name: cool-app.zip
          url: http://my.awesome.download.site/1.0-$CI_COMMIT_SHORT_SHA.zip
        - name: cool-app.exe
          url: http://my.awesome.download.site/1.0-$CI_COMMIT_SHORT_SHA.exe

Notes

Feature introduced in GitLab %13.2 and is now generally available on gitlab.com.

For self-managed instances, GitLab 13.2 and GitLab runner v13.2.0 are required.

Edited by Jaime Martinez