summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2021-02-17 13:58:09 +0100
committerDaniel Weipert <code@drogueronin.de>2021-02-17 13:58:09 +0100
commit7917869452c9d915f0d3f704efee3ac7c5820433 (patch)
tree572e4d97370bb9d33d8878d7c1e8bf8cd1b48f7a /.gitlab-ci.yml
parent293e317e13c3c95104b18f2dd57ffda3e19d98ab (diff)
CI Release to itch.io #1
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..6000a02
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,28 @@
+image: ioribranford/godot-docker:latest
+# @see https://gitlab.com/HarvHouHacker/SuperTuxParty/-/blob/dev/.gitlab-ci.yml
+# @see https://gitlab.com/HarvHouHacker/SuperTuxParty/-/blob/dev/release.sh
+
+release:
+ only:
+ - tags
+
+ before_script:
+ - mkdir exports
+ - mkdir .ci-bin && cd .ci-bin
+ - wget -O butler.zip https://broth.itch.ovh/butler/linux-amd64/LATEST/archive/default
+ - unzip butler.zip
+ - chmod +x butler
+ - cd ..
+ - export PATH=$(realpath .ci-bin):$PATH
+
+ script:
+ - godot --export "Linux/X11" "exports/TicTacTux"
+ - godot --export "Mac OSX" "exports/TicTacTux.app"
+ - godot --export "Windows Desktop" "exports/TicTacTux.exe"
+ - cd exports
+ - zip TicTacTux-linux.zip TicTacTux TicTacTux.pck
+ - zip TicTacTux-win.zip TicTacTux.exe TicTacTux.pck
+ - butler push TicTacTux-linux.zip drogueronin/tictactux:linux --userversion="$CI_COMMIT_REF_NAME"
+ - butler push TicTacTux.dmg drogueronin/tictactux:osx --userversion="$CI_COMMIT_REF_NAME"
+ - butler push TicTacTux-win.zip drogueronin/tictactux:win --userversion="$CI_COMMIT_REF_NAME"
+