| 1 | # .gitlab-ci.yml |
| 2 | |
| 3 | # Define stages for the pipeline |
| 4 | stages: |
| 5 | - deploy |
| 6 | |
| 7 | # Define a job that runs when something is pushed to the master branch |
| 8 | deploy_job: |
| 9 | stage: deploy |
| 10 | script: |
| 11 | - apt-get update -qy |
| 12 | - chmod +x ./glbuild.sh # Ensure the script is executable |
| 13 | - ./glbuild.sh # Execute the script |
| 14 | artifacts: |
| 15 | paths: |
| 16 | - js/framework.js |
| 17 | only: |
| 18 | - master # Run this job only when changes are pushed to the master branch |