Update gitlab-ci template to use test-project
This commit is contained in:
@@ -11,18 +11,14 @@ stages:
|
|||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
EXPORT_NAME: game-off
|
EXPORT_NAME: test-project
|
||||||
|
|
||||||
before_script:
|
|
||||||
- mkdir -v -p build/linux
|
|
||||||
- mkdir -v -p build/windows
|
|
||||||
- mkdir -v -p build/mac
|
|
||||||
- mkdir -v -p build/web
|
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
stage: export
|
stage: export
|
||||||
script:
|
script:
|
||||||
- godot -v --export "Linux/X11" ./build/linux/$EXPORT_NAME.x86_64
|
- mkdir -v -p build/linux
|
||||||
|
- cd $EXPORT_NAME
|
||||||
|
- godot -v --export "Linux/X11" ../build/linux/$EXPORT_NAME.x86_64
|
||||||
artifacts:
|
artifacts:
|
||||||
name: $EXPORT_NAME-$CI_JOB_NAME
|
name: $EXPORT_NAME-$CI_JOB_NAME
|
||||||
paths:
|
paths:
|
||||||
@@ -31,7 +27,9 @@ linux:
|
|||||||
windows:
|
windows:
|
||||||
stage: export
|
stage: export
|
||||||
script:
|
script:
|
||||||
- godot -v --export "Windows Desktop" ./build/windows/$EXPORT_NAME.exe
|
- mkdir -v -p build/windows
|
||||||
|
- cd $EXPORT_NAME
|
||||||
|
- godot -v --export "Windows Desktop" ../build/windows/$EXPORT_NAME.exe
|
||||||
artifacts:
|
artifacts:
|
||||||
name: $EXPORT_NAME-$CI_JOB_NAME
|
name: $EXPORT_NAME-$CI_JOB_NAME
|
||||||
paths:
|
paths:
|
||||||
@@ -40,7 +38,9 @@ windows:
|
|||||||
mac:
|
mac:
|
||||||
stage: export
|
stage: export
|
||||||
script:
|
script:
|
||||||
- godot -v --export "Mac OSX" ./build/mac/$EXPORT_NAME.zip
|
- mkdir -v -p build/mac
|
||||||
|
- cd $EXPORT_NAME
|
||||||
|
- godot -v --export "Mac OSX" ../build/mac/$EXPORT_NAME.zip
|
||||||
artifacts:
|
artifacts:
|
||||||
name: $EXPORT_NAME-$CI_JOB_NAME
|
name: $EXPORT_NAME-$CI_JOB_NAME
|
||||||
paths:
|
paths:
|
||||||
@@ -49,7 +49,9 @@ mac:
|
|||||||
web:
|
web:
|
||||||
stage: export
|
stage: export
|
||||||
script:
|
script:
|
||||||
- godot -v --export "HTML5" ./build/web/index.html
|
- mkdir -v -p build/web
|
||||||
|
- cd $EXPORT_NAME
|
||||||
|
- godot -v --export "HTML5" ../build/web/index.html
|
||||||
artifacts:
|
artifacts:
|
||||||
name: $EXPORT_NAME-$CI_JOB_NAME
|
name: $EXPORT_NAME-$CI_JOB_NAME
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
@@ -1,101 +0,0 @@
|
|||||||
image: barichello/godot-ci:3.2
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- export
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
variables:
|
|
||||||
EXPORT_NAME: game-off
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
# GitHub Pages Deploy
|
|
||||||
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: GitHub Page $EXPORT_NAME:$CI_JOB_NAME" -m "Deploy from GitLab pipeline #$CI_PIPELINE_ID" || true'
|
|
||||||
- git push github gh-pages -f
|
|
||||||
|
|
||||||
# GitLab Pages Deploy
|
|
||||||
pages:
|
|
||||||
stage: deploy
|
|
||||||
dependencies:
|
|
||||||
- web
|
|
||||||
script:
|
|
||||||
- git checkout pages
|
|
||||||
- rm -f *.md
|
|
||||||
- mv build/web/** ./public
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- public
|
|
||||||
|
|
||||||
# Itch.io Deploy
|
|
||||||
itchio:linux:
|
|
||||||
stage: deploy
|
|
||||||
script:
|
|
||||||
- butler push ./build/linux $ITCHIO_USERNAME/$ITCHIO_GAME:linux
|
|
||||||
dependencies:
|
|
||||||
- linux
|
|
||||||
|
|
||||||
itchio:windows:
|
|
||||||
stage: deploy
|
|
||||||
script:
|
|
||||||
- butler push ./build/windows $ITCHIO_USERNAME/$ITCHIO_GAME:windows
|
|
||||||
dependencies:
|
|
||||||
- windows
|
|
||||||
|
|
||||||
itchio:macosx:
|
|
||||||
stage: deploy
|
|
||||||
script:
|
|
||||||
- butler push ./build/mac $ITCHIO_USERNAME/$ITCHIO_GAME:mac
|
|
||||||
dependencies:
|
|
||||||
- mac
|
|
||||||
Reference in New Issue
Block a user