2018-12-27 22:42:19 +00:00
|
|
|
# image: shru/arch-love-release:heavy
|
|
|
|
image: asmfreak/love-release:latest
|
2018-12-14 22:14:23 +00:00
|
|
|
|
|
|
|
variables:
|
|
|
|
ITCHIO_USER: shru
|
|
|
|
ITCHIO_GAME: cave-story-randomizer
|
|
|
|
CHANNEL: $CI_COMMIT_REF_NAME
|
|
|
|
|
|
|
|
stages:
|
2018-12-20 17:08:28 +00:00
|
|
|
- build-release
|
2018-12-14 22:14:23 +00:00
|
|
|
|
2018-12-20 17:08:28 +00:00
|
|
|
build-and-release:
|
|
|
|
stage: build-release
|
2018-12-20 16:55:40 +00:00
|
|
|
when: manual
|
|
|
|
script:
|
2018-12-20 17:08:28 +00:00
|
|
|
# I - Build
|
2018-12-20 17:03:07 +00:00
|
|
|
- cd src
|
2018-12-20 17:08:28 +00:00
|
|
|
- love-release -W
|
|
|
|
# II - Release to itch.io
|
2018-12-20 17:03:07 +00:00
|
|
|
- cd releases
|
2018-12-29 19:28:20 +00:00
|
|
|
- FILE=$(ls *-win32.zip) ;
|
|
|
|
zip -d "$FILE" "*/lovec.exe" "*/changes.txt" "*/readme.txt" "*.ico" ;
|
|
|
|
butler push "$FILE" "$ITCHIO_USER/$ITCHIO_GAME:win32-$CHANNEL"
|