42 lines
786 B
YAML
42 lines
786 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:
|
|
branch:
|
|
- drone-builds
|
|
|
|
- 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:
|
|
branch:
|
|
- drone-builds
|
|
|
|
- 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:
|
|
branch:
|
|
- drone-builds
|
|
event:
|
|
- tag
|