Update .gitlab-ci.yml file
@@ -14,5 +14,22 @@ deploy_job:
14
14
artifacts:
15
15
paths:
16
16
- js/framework.js
17
only:
18
- master # Run this job only when changes are pushed to the master branch
19
20
release_job:
21
stage: release
22
image: registry.gitlab.com/gitlab-org/release-cli:latest
23
rules:
24
- if: $CI_COMMIT_TAG
25
when: never # Do not run this job when a tag is created manually
26
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
27
script:
28
- echo "running release_job for $TAG"
29
release:
30
name: 'v0.$CI_PIPELINE_IID'
31
tag_name: 'v0.$CI_PIPELINE_IID' # The version is incremented per pipeline.
32
description: 'v0.$CI_PIPELINE_IID'
33
ref: '$CI_COMMIT_SHA' # The tag is created from the pipeline SHA.
17
34
only:
18
35
- master # Run this job only when changes are pushed to the master branch
@@ -14,5 +14,22 @@ deploy_job:14
artifacts:14
artifacts:15
paths:15
paths:16
- js/framework.js16
- js/framework.js17
only:18
- master # Run this job only when changes are pushed to the master branch19
20
release_job:21
stage: release22
image: registry.gitlab.com/gitlab-org/release-cli:latest23
rules:24
- if: $CI_COMMIT_TAG25
when: never # Do not run this job when a tag is created manually26
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch27
script:28
- echo "running release_job for $TAG"29
release: 30
name: 'v0.$CI_PIPELINE_IID'31
tag_name: 'v0.$CI_PIPELINE_IID' # The version is incremented per pipeline.32
description: 'v0.$CI_PIPELINE_IID'33
ref: '$CI_COMMIT_SHA' # The tag is created from the pipeline SHA.17
only:34
only:18
- master # Run this job only when changes are pushed to the master branch35
- master # Run this job only when changes are pushed to the master branch