cave-story-randomizer/.gitlab-ci.yml

31 lines
962 B
YAML
Raw Normal View History

2018-12-14 22:14:23 +00:00
image: shru/arch-love-release:heavy
variables:
ITCHIO_USER: shru
ITCHIO_GAME: cave-story-randomizer
CHANNEL: $CI_COMMIT_REF_NAME
stages:
- build
build-depoy:
stage: build
script:
# I. Build
- cd src
- love-release -W # -M (Skip MacOS for now, since broken after Love 11.)
# II. Release
- cd releases
- FILE=$(ls *-win64.zip) ; butler push "$FILE" "$ITCHIO_USER/$ITCHIO_GAME:win64-$CHANNEL"
- 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