Files
godot-ci/.gitlab-ci.yml
BARICHELLO 0bcd6746f9 Remove only tags; Remove readme.md
Updated gitlab-ci script to remove all markdown files which can interfere with index.html in gh-pages. Removed all 'only' tags.
2019-03-22 00:12:28 -03:00

69 lines
1.5 KiB
YAML

image: barichello/godot-ci:3.1
variables:
EXPORT_NAME: gameoff
GIT_EMAIL: artur@barichello.me
GIT_USERNAME: abarichello
stages:
- export
- deploy
before_script:
- mkdir -v -p build/linux
- mkdir -v -p build/windows
- mkdir -v -p build/mac
- mkdir -v -p build/web
linux:
stage: export
script:
- godot -v --export "Linux/X11" ./build/linux/$EXPORT_NAME.x86_64
artifacts:
name: $EXPORT_NAME-$CI_JOB_NAME
paths:
- build/linux
windows:
stage: export
script:
- godot -v --export "Windows Desktop" ./build/windows/$EXPORT_NAME.exe
artifacts:
name: $EXPORT_NAME-$CI_JOB_NAME
paths:
- build/windows
mac:
stage: export
script:
- godot -v --export "Mac OSX" ./build/mac/$EXPORT_NAME.zip
artifacts:
name: $EXPORT_NAME-$CI_JOB_NAME
paths:
- build/mac
web:
stage: export
script:
- godot -v --export "HTML5" ./build/web/index.html
artifacts:
name: $EXPORT_NAME-$CI_JOB_NAME
paths:
- build/web
# Use project root to deploy for the gh-pages branch
deploy-github-pages:
stage: deploy
dependencies:
- web
script:
- git checkout gh-pages
- rm -f *.md
- mv build/web/** .
- git config user.email $GIT_EMAIL
- git config user.name $GIT_USERNAME
- git remote add github $REMOTE_URL
- git add -A
- 'git commit -m "ci: Deploy GitHub Page $EXPORT_NAME-$CI_JOB_NAME$" -m "Deploy from GitLab pipeline \#$CI_PIPELINE_ID"'
- git push github gh-pages -f