BlueGit

timfa frameworkv3

Update .gitlab-ci.yml file

timfa Tim Falken · pushed by timfa

Authored 2024-07-30 · 2 years ago

Hash
c70e4e75f7252e51059d75a78b88d09972dd6c72
Parent
3f6a7bfd
1 file changed +17 −0
.gitlab-ci.yml +17 −0
@@ -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.js
16 - js/framework.js
17 only:
18 - master # Run this job only when changes are pushed to the master branch
19
20release_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 only:
34 only:
18 - master # Run this job only when changes are pushed to the master branch
35 - master # Run this job only when changes are pushed to the master branch