2019-10-23 08:00:46 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
2019-10-23 08:12:53 +00:00
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
2019-10-23 08:00:46 +00:00
|
|
|
steps:
|
2019-10-23 08:12:53 +00:00
|
|
|
- name: clone
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
2019-10-23 08:13:50 +00:00
|
|
|
- git clone https://git.f-brinker.de/fbrinker/elderscrolls-addon-achievementInfo.git sources
|
2019-10-23 08:15:03 +00:00
|
|
|
- cd sources && git checkout $DRONE_COMMIT
|
2019-10-23 08:21:37 +00:00
|
|
|
when:
|
2019-10-23 08:27:35 +00:00
|
|
|
event:
|
|
|
|
- tag
|
2019-10-23 08:00:46 +00:00
|
|
|
|
|
|
|
- name: build
|
|
|
|
image: alpine
|
|
|
|
commands:
|
2019-10-23 08:05:22 +00:00
|
|
|
- apk update && apk add --no-cache zip
|
2019-10-23 08:12:53 +00:00
|
|
|
- rm -rf sources/.git
|
2019-10-23 08:19:46 +00:00
|
|
|
- mv sources AchievementInfo
|
|
|
|
- zip -r "AchievementInfo-$DRONE_TAG.zip" ./AchievementInfo
|
2019-10-23 08:21:37 +00:00
|
|
|
when:
|
2019-10-23 08:27:35 +00:00
|
|
|
event:
|
|
|
|
- tag
|
2019-10-23 08:00:46 +00:00
|
|
|
|
|
|
|
- name: release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
base_url: https://git.f-brinker.de
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
2019-10-23 08:30:28 +00:00
|
|
|
files: ./*.zip
|
2019-10-23 08:00:46 +00:00
|
|
|
draft: true
|
2019-10-23 08:21:37 +00:00
|
|
|
when:
|
2019-10-23 08:24:54 +00:00
|
|
|
event:
|
|
|
|
- tag
|