Notex-3/.drone.yml

36 lines
940 B
YAML
Raw Normal View History

2021-02-12 17:00:00 +01:00
kind: pipeline
name: release
steps:
- name: build
2021-02-16 14:46:09 +01:00
image: haxe:4.2.0-alpine
2021-02-12 17:00:00 +01:00
commands:
2021-02-16 14:46:09 +01:00
- apk add openjdk8-jre curl
# Download MPT
2021-02-12 17:00:00 +01:00
- curl 'https://data.tilera.xyz/file/mpt/mpt-1.2-SNAPSHOT.jar' -o mpt.jar
2021-02-16 14:46:09 +01:00
2021-02-12 17:00:00 +01:00
- haxelib setup /usr/share/haxe/lib
- haxelib install kubejs
- ./buildhaxe.sh
- java -jar mpt.jar buildtwitch
2021-02-12 17:51:18 +01:00
- java -jar mpt.jar createmodlist --all HTML build/modlist.html
2021-02-12 17:00:00 +01:00
- mv build/notex-*-twitch.zip build/notex-twitch.zip
- name: publish
image: plugins/gitea-release
settings:
base_url: https://data.tilera.xyz/git
api_key:
from_secret: gitea_token
note: CHANGELOG.md
title: tag-${DRONE_TAG}
files:
- build/notex-twitch.zip
2021-02-12 17:51:18 +01:00
- build/modlist.html
2021-02-12 17:00:00 +01:00
when:
event: tag
depends_on:
2021-02-12 17:00:45 +01:00
- build
2021-02-12 17:00:00 +01:00