From 4b000a511f96d6e70589534088d5fea420158fe0 Mon Sep 17 00:00:00 2001 From: shru Date: Thu, 20 Dec 2018 11:55:40 -0500 Subject: [PATCH] Rework .gitlab-ci.yml for manual releases. --- .gitlab-ci.yml | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0a9d3f1..9f01811 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,24 +7,18 @@ variables: stages: - build + - release -build-depoy: +build: stage: build script: - # I. Build - cd src - - love-release -W # -M (Skip MacOS for now, since broken after Love 11.) + - love-release -W - # II. Release - - cd releases - # - FILE=$(ls *-win64.zip) ; butler push "$FILE" "$ITCHIO_USER/$ITCHIO_GAME:win64-$CHANNEL" +release: + stage: release + when: manual + script: + - cd src/releases - FILE=$(ls *-win32.zip) ; butler push "$FILE" "$ITCHIO_USER/$ITCHIO_GAME:win32-$CHANNEL" - # - FILE=$(ls *-macosx.zip) ; zip -ur "$FILE" "Cave Story Randomizer.app" ; butler push "$FILE" "$ITCHIO_USER/$ITCHIO_GAME:osx-$CHANNEL" - # # Workaround for issue where butler renames *.love to *.zip. - # - FILE=$(ls *.love) ; mkdir love-file-dir ; mv "$FILE" love-file-dir - # - butler push love-file-dir "$ITCHIO_USER/$ITCHIO_GAME:linux-$CHANNEL" - -cache: - key: rocks - paths: - - src/rocks + # - FILE=$(ls *-win64.zip) ; butler push "$FILE" "$ITCHIO_USER/$ITCHIO_GAME:win64-$CHANNEL"