Update .gitlab-ci.yml file
@@ -17,6 +17,9 @@ build_job:
17
17
- js/framework.js
18
18
only:
19
19
- master # Run this job only when changes are pushed to the master branch
20
after_script:
21
# Save the job ID in a .env file to be used by the next job
22
- echo "BUILD_JOB_ID=$CI_JOB_ID" >> build_job.env
20
23
21
24
release_job:
22
25
stage: release
@@ -31,6 +34,6 @@ release_job:
31
34
assets:
32
35
links:
33
36
- name: 'framework.js'
34
url: "https://gitlab.com/${CI_PROJECT_PATH}/-/jobs/${CI_JOB_ID}/artifacts/raw/js/framework.js"
37
url: "https://gitlab.com/${CI_PROJECT_PATH}/-/jobs/$BUILD_JOB_ID/artifacts/file/js/framework.js"
35
38
only:
36
39
- master # Run this job only when changes are pushed to the master branch
@@ -17,6 +17,9 @@ build_job:17
- js/framework.js17
- js/framework.js18
only:18
only:19
- master # Run this job only when changes are pushed to the master branch19
- master # Run this job only when changes are pushed to the master branch20
after_script:21
# Save the job ID in a .env file to be used by the next job22
- echo "BUILD_JOB_ID=$CI_JOB_ID" >> build_job.env20
23
21
release_job:24
release_job:22
stage: release25
stage: release@@ -31,6 +34,6 @@ release_job:31
assets:34
assets:32
links:35
links:33
- name: 'framework.js'36
- name: 'framework.js'34
url: "https://gitlab.com/${CI_PROJECT_PATH}/-/jobs/${CI_JOB_ID}/artifacts/raw/js/framework.js"37
url: "https://gitlab.com/${CI_PROJECT_PATH}/-/jobs/$BUILD_JOB_ID/artifacts/file/js/framework.js"35
only:38
only:36
- master # Run this job only when changes are pushed to the master branch39
- master # Run this job only when changes are pushed to the master branch