40 lines
734 B
YAML
40 lines
734 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: ./*.zip
|
|
draft: true
|
|
when:
|
|
event:
|
|
- tag
|