summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 5e2f6a7c47751644b0b34bc4e645c770af6d8cb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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.dmg"
    - 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"