Update Gitlab CI
This commit is contained in:
parent
3285a1a302
commit
ba2e3c561d
1 changed files with 48 additions and 2 deletions
|
@ -62,10 +62,56 @@ web:
|
||||||
|
|
||||||
android:
|
android:
|
||||||
stage: export
|
stage: export
|
||||||
|
rules:
|
||||||
|
- if: $SECRET_RELEASE_KEYSTORE_BASE64
|
||||||
|
- if: $SECRET_RELEASE_KEYSTORE_USER
|
||||||
|
- if: $SECRET_RELEASE_KEYSTORE_PASSWORD
|
||||||
script:
|
script:
|
||||||
|
- echo $SECRET_RELEASE_KEYSTORE_BASE64 | base64 --decode > /root/upload-keystore.jks
|
||||||
- mkdir -v -p build/android
|
- mkdir -v -p build/android
|
||||||
- godot -v --export-debug --headless "Android Debug" ../build/android/$EXPORT_NAME-debug.apk
|
- cd $EXPORT_NAME
|
||||||
|
- sed 's@keystore/release=".*"@keystore/release="'/root/upload-keystore.jks'"@g' -i export_presets.cfg
|
||||||
|
- sed 's@keystore/release_user=".*"@keystore/release_user="'$SECRET_RELEASE_KEYSTORE_USER'"@g' -i export_presets.cfg
|
||||||
|
- sed 's@keystore/release_password=".*"@keystore/release_password="'$SECRET_RELEASE_KEYSTORE_PASSWORD'"@g' -i export_presets.cfg
|
||||||
|
- godot -v --export-release --headless "Android" ../build/android/$EXPORT_NAME.apk
|
||||||
artifacts:
|
artifacts:
|
||||||
name: $EXPORT_NAME-$CI_JOB_NAME
|
name: $EXPORT_NAME-$CI_JOB_NAME
|
||||||
paths:
|
paths:
|
||||||
- build/android
|
- build/android
|
||||||
|
|
||||||
|
# GitLab Pages Deploy
|
||||||
|
pages:
|
||||||
|
stage: deploy
|
||||||
|
dependencies:
|
||||||
|
- web
|
||||||
|
script:
|
||||||
|
# This ensures the `pages` branch is available.
|
||||||
|
- git fetch
|
||||||
|
- 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
|
Loading…
Reference in a new issue