elderscrolls-addon-achievem.../.drone.yml
2019-10-23 10:27:35 +02:00

40 lines
735 B
YAML

---
kind: pipeline
name: default
clone:
disable: true
steps:
- name: clone
image: alpine/git
commands:
- git clone https://git.f-brinker.de/fbrinker/elderscrolls-addon-achievementInfo.git sources
- cd sources && git checkout $DRONE_COMMIT
when:
event:
- tag
- name: build
image: alpine
commands:
- apk update && apk add --no-cache zip
- rm -rf sources/.git
- mv sources AchievementInfo
- zip -r "AchievementInfo-$DRONE_TAG.zip" ./AchievementInfo
when:
event:
- tag
- name: release
image: plugins/gitea-release
settings:
base_url: https://git.f-brinker.de
api_key:
from_secret: gitea_token
files: test.zip
draft: true
when:
event:
- tag