BlueGit

timfa frameworkv3

Files

frameworkv3 / .gitlab-ci.yml

.gitlab-ci.yml

Update .gitlab-ci.yml file
timfa Tim Falken · pushed by timfa · 2 years ago
6f9dc8a0 History
.gitlab-ci.yml 1.1 KiB Download Raw
1# .gitlab-ci.yml
2
3# Define stages for the pipeline
4stages:
5 - build
6 - release
7
8# Define a job that runs when something is pushed to the master branch
9build_job:
10 stage: build
11 script:
12 - apt-get update -qy
13 - chmod +x ./glbuild.sh # Ensure the script is executable
14 - ./glbuild.sh # Execute the script
15 artifacts:
16 paths:
17 - js/framework.js
18 only:
19 - master # Run this job only when changes are pushed to the master branch
20
21release_job:
22 stage: release
23 image: registry.gitlab.com/gitlab-org/release-cli:latest
24 script:
25 - echo "running release_job for $TAG"
26 release:
27 name: 'v0.$CI_PIPELINE_IID'
28 tag_name: 'v0.$CI_PIPELINE_IID' # The version is incremented per pipeline.
29 description: 'v0.$CI_PIPELINE_IID'
30 ref: '$CI_COMMIT_SHA' # The tag is created from the pipeline SHA.
31 assets:
32 links:
33 - name: 'framework.js'
34 url: "https://gitlab.com/${CI_PROJECT_PATH}/-/jobs/${CI_JOB_ID}/artifacts/raw/js/framework.js"
35 only:
36 - master # Run this job only when changes are pushed to the master branch