From a876a304e5a65e16da73bcf1d4c00577c6ac75df Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Fri, 12 Feb 2021 17:00:00 +0100 Subject: [PATCH] add CICD --- .drone.yml | 31 +++++++++++++++++++++++++++++++ CHANGELOG.md | 3 +++ 2 files changed, 34 insertions(+) create mode 100644 .drone.yml create mode 100644 CHANGELOG.md diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..bf4ae48 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,31 @@ +kind: pipeline +name: release +steps: + - name: build + image: alpine + commands: + - apk add openjdk8-jre haxe curl neko + - curl 'https://data.tilera.xyz/file/mpt/mpt-1.2-SNAPSHOT.jar' -o mpt.jar + - haxelib setup /usr/share/haxe/lib + - haxelib install kubejs + + - ./buildhaxe.sh + - java -jar mpt.jar buildtwitch + + - 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 + when: + event: tag + depends_on: + - release + diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..8d7544c --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,3 @@ +# v0.1.0 +initial release +