add CICD
This commit is contained in:
parent
f047c70dcb
commit
f22f294ad5
2 changed files with 27 additions and 0 deletions
27
.drone.yml
Normal file
27
.drone.yml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
kind: pipeline
|
||||||
|
name: release
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: alpine
|
||||||
|
commands:
|
||||||
|
- apk add openjdk8-jre curl
|
||||||
|
- ./mpt buildtwitch
|
||||||
|
- ./mpt createmodlist HTML build/modlist.html
|
||||||
|
- mv build/testcraftp2-*-twitch.zip build/testcraftp2-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/testcraftp2-twitch.zip
|
||||||
|
- build/modlist.html
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
depends_on:
|
||||||
|
- build
|
||||||
|
|
0
mpt
Normal file → Executable file
0
mpt
Normal file → Executable file
Loading…
Reference in a new issue