BlueGit

timfa frameworkv3

Update .gitlab-ci.yml file

timfa Tim Falken · pushed by timfa

Authored 2024-07-30 · 2 years ago

Hash
2e551386c9f3c9177e5ee22902bae674cfbd99a7
Parent
6f9dc8a0
1 file changed +4 −1
.gitlab-ci.yml +4 −1
@@ -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.js
17 - js/framework.js
18 only:
18 only:
19 - master # Run this job only when changes are pushed to the master branch
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
21release_job:
24release_job:
22 stage: release
25 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 branch
39 - master # Run this job only when changes are pushed to the master branch