godot-shooter / commit
CI pasta time: making changes as per https://github.com/abarichello/godot-ci, specifically https://gitlab.com/barichello/game-off/-/blob/master/.gitlab-ci.yml?ref_type=heads
.gitlab-ci.yaml | 38 +++++++++++++++++--------------------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/.gitlab-ci.yaml b/.gitlab-ci.yaml index 8f843ec..ffe80b3 100644 --- a/.gitlab-ci.yaml +++ b/.gitlab-ci.yaml @@ -3,7 +3,7 @@ image: barichello/godot-ci:latest variables: - EXPORT_NAME: "shooter" + EXPORT_NAME: shooter stages: - export @@ -18,51 +18,47 @@ before_script: linux: stage: export script: - - cd Godot - - godot -v --export "Linux/X11" ../build/linux/$EXPORT_NAME.x86_64 - - test -e ../build/linux/$EXPORT_NAME.x86_64 + - godot -v --export "Linux/X11" ./build/linux/$EXPORT_NAME.x86_64 artifacts: name: $EXPORT_NAME-$CI_JOB_NAME paths: - build/linux - only: - - release windows: stage: export script: - - cd Godot - - godot -v --export "Windows Desktop" ../build/windows/$EXPORT_NAME.exe - - test -e ../build/windows/$EXPORT_NAME.exe + - godot -v --export "Windows Desktop" ./build/windows/$EXPORT_NAME.exe artifacts: name: $EXPORT_NAME-$CI_JOB_NAME paths: - build/windows - only: - - release mac: stage: export script: - - cd Godot - - godot -v --export "Mac OSX" ../build/mac/$EXPORT_NAME.zip - - test -e ../build/mac/$EXPORT_NAME.zip + - godot -v --export "Mac OSX" ./build/mac/$EXPORT_NAME.zip artifacts: name: $EXPORT_NAME-$CI_JOB_NAME paths: - build/mac - only: - - release web: stage: export script: - - cd Godot - - godot -v --path Godot --export "HTML5" ../build/web/index.html - - test -e ../build/web/index.html + - godot -v --export "HTML5" ./build/web/index.html artifacts: name: $EXPORT_NAME-$CI_JOB_NAME paths: - build/web - only: - - release + +pages: + stage: deploy + dependencies: + - web + script: + - git checkout pages + - rm -f *.md + - mv build/web/** ./public + artifacts: + paths: + - public