1 files changed, 18 insertions(+), 4 deletions(-)
M .build.yml
M .build.yml => .build.yml +18 -4
@@ 2,12 2,26 @@ image: alpine/latest
packages:
- crystal
- shards
+- xz
+- lftp
+secrets:
+- 37de76ab-f4c1-4ac0-a8ed-8a9562205c65
+environment:
+ FTPURL: ftp.cluster021.hosting.ovh.net
tasks:
-- build: |-
- cd blog2gmi
- rm shard.lock
- shards build
- test: |-
cd blog2gmi
rm shard.lock
+ shards
crystal spec --tag "~disable"
+- release_build: |-
+ cd blog2gmi
+ rm shard.lock
+ shards build --release
+- upload: |-
+ cd blog2gmi
+ xz bin/blog2gmi
+ lftp -c "
+ open ${FTPURL};
+ put -e bin/blog2gmi.xz -o /zsyp/bin/blog2gmi.xz
+ "