godot-shooter / starfield-background / files / .gitlab-ci.yml
Branch starfield-background · default branch · all branches
.gitlab-ci.yml
| 1 | # modified from https://github.com/Razzlegames/GodotTutorialsPlatformer/blob/GitlabCiTutorial/.gitlab-ci.yml |
| 2 | |
| 3 | image: barichello/godot-ci:3.5.2 |
| 4 | |
| 5 | variables: |
| 6 | EXPORT_NAME: shooter |
| 7 | |
| 8 | stages: |
| 9 | - export |
| 10 | - deploy |
| 11 | |
| 12 | before_script: |
| 13 | - mkdir -v -p build/web |
| 14 | |
| 15 | web: |
| 16 | stage: export |
| 17 | script: |
| 18 | - echo "The site will be deployed to $CI_PAGES_URL" |
| 19 | - godot -v --export "HTML5" ./build/web/index.html |
| 20 | artifacts: |
| 21 | name: $EXPORT_NAME-$CI_JOB_NAME |
| 22 | paths: |
| 23 | - build/web |
| 24 | |
| 25 | pages: |
| 26 | stage: deploy |
| 27 | dependencies: |
| 28 | - web |
| 29 | script: |
| 30 | - mkdir -p public |
| 31 | - cp build/web/* public/ -R |
| 32 | artifacts: |
| 33 | paths: |
| 34 | - public |