godot-shooter / change-html-template / files / .gitlab-ci.yml
Branch change-html-template · 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 | - pages |
| 10 | |
| 11 | before_script: |
| 12 | - mkdir -v -p build/web |
| 13 | |
| 14 | pages: |
| 15 | stage: pages |
| 16 | script: |
| 17 | - echo "The site will be deployed to $CI_PAGES_URL" |
| 18 | - godot -v --export "HTML5" ./build/web/index.html |
| 19 | - mkdir -p public |
| 20 | - cp build/web/* public/ -R |
| 21 | artifacts: |
| 22 | paths: |
| 23 | - public |