Add Drone Releases #3
57
.drone.yml
Normal file
57
.drone.yml
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
---
|
||||||
|
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
|
||||||
|
# Delete unneeded files/dirs
|
||||||
|
- rm -rf sources/.git
|
||||||
|
- rm -rf sources/.drone.yml
|
||||||
|
# Set Version and AddonVersion
|
||||||
|
- export VERSION=$DRONE_TAG
|
||||||
|
- export ADDON_VERSION=$(echo $DRONE_TAG | sed -E 's/(0|)\.//g')
|
||||||
|
- sed -i "s/%VERSION%/$VERSION/g" sources/AchievementInfoCommon.lua
|
||||||
|
- sed -i "s/%VERSION%/$VERSION/g" sources/AchievementInfo.txt
|
||||||
|
- sed -i "s/%ADDON_VERSION%/$ADDON_VERSION/g" sources/AchievementInfo.txt
|
||||||
|
# Rename and zip
|
||||||
|
- 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
|
||||||
|
title: AchievementInfo ${DRONE_TAG}
|
||||||
|
note: AchievementInfo/CHANGELOG.md
|
||||||
|
checksum:
|
||||||
|
- md5
|
||||||
|
- sha1
|
||||||
|
- sha256
|
||||||
|
- sha512
|
||||||
|
- adler32
|
||||||
|
- crc32
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
@ -1,7 +1,7 @@
|
|||||||
## Title: AchievementInfo
|
## Title: AchievementInfo
|
||||||
## Description: Displays progress updates for achievements in the chat. You can display update-details like 'Slay 25/100 Monsters' if interested. |cFF0000Important:|r The messages appear only when an achievement is updated. This is no permanent tracking tool.
|
## Description: Displays progress updates for achievements in the chat. You can display update-details like 'Slay 25/100 Monsters' if interested. |cFF0000Important:|r The messages appear only when an achievement is updated. This is no permanent tracking tool.
|
||||||
## AddOnVersion 223
|
## AddOnVersion %ADDON_VERSION%
|
||||||
## Version: 2.23
|
## Version: %VERSION%
|
||||||
## Author: |c87B7CCAsto|r, @Astarax
|
## Author: |c87B7CCAsto|r, @Astarax
|
||||||
## Contact: mail@coded-with-heart.com
|
## Contact: mail@coded-with-heart.com
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
AchievementInfo = {}
|
AchievementInfo = {}
|
||||||
AchievementInfo.name = "AchievementInfo"
|
AchievementInfo.name = "AchievementInfo"
|
||||||
AchievementInfo.author = "Asto, @Astarax"
|
AchievementInfo.author = "Asto, @Astarax"
|
||||||
AchievementInfo.version = 2.23
|
AchievementInfo.version = %VERSION%
|
||||||
AchievementInfo.savedVars = nil
|
AchievementInfo.savedVars = nil
|
||||||
AchievementInfo.LangStore = {}
|
AchievementInfo.LangStore = {}
|
||||||
|
|
||||||
|
4
CHANGELOG.md
Normal file
4
CHANGELOG.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
### Notable Changes
|
||||||
|
|
||||||
|
#### 0.12
|
||||||
|
* New API version
|
Loading…
Reference in New Issue
Block a user