-
-
Notifications
You must be signed in to change notification settings - Fork 11
63 lines (53 loc) · 2.48 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Package Retail/Wrath/Classic
on:
push:
branches:
- master
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: "Validate Version"
run: |
if [[ "$(grep -hroP '## Version.*' --exclude-dir=.release --include="*.toc" . | sort --unique | wc -l)" -gt 1 ]]; then
grep -rnP '## Version.*' --exclude-dir=.release --include="*.toc" . | cat
echo "More than 1 distinct ##Version found in .toc files." 1>&2
exit 1
fi;
- name: "Validate TOC Classic"
run: |
if [[ "$(grep -hroP '## X?-?\KInterface.*' --exclude-dir=.release --include="*-Classic.toc" . | sort --unique | wc -l)" -gt 1 ]]; then
grep -rnP '## X?-?\KInterface.*' --exclude-dir=.release --include="*-Classic.toc" . | cat
echo "More than 1 distinct ##Interface version found in .toc files." 1>&2
exit 1
fi;
- name: "Validate TOC Wrath"
run: |
if [[ "$(grep -hroP '## X?-?\KInterface.*' --exclude-dir=.release --include="*-Wrath.toc" . | sort --unique | wc -l)" -gt 1 ]]; then
grep -rnP '## X?-?\KInterface.*' --exclude-dir=.release --include="*-Wrath.toc" . | cat
echo "More than 1 distinct ##Interface version found in .toc files." 1>&2
exit 1
fi;
- name: "Validate TOC Retail"
run: |
if [[ "$(grep -hroP '## X?-?\KInterface.*' --exclude-dir=.release --include="TellMeWhen.toc" --include="TellMeWhen_Options.toc" . | sort --unique | wc -l)" -gt 1 ]]; then
grep -rnP '## X?-?\KInterface.*' --exclude-dir=.release --include="TellMeWhen.toc" --include="TellMeWhen_Options.toc" . | cat
echo "More than 1 distinct ##Interface version found in .toc files." 1>&2
exit 1
fi;
- name: "Build In-Game Changelog"
run: sudo chmod +x ./build/create-lua-changelog.sh && ./build/create-lua-changelog.sh
- name: "Build Short Changelog"
run: sudo chmod +x ./build/create-short-changelog.sh && ./build/create-short-changelog.sh
- name: Create Package
uses: BigWigsMods/packager@master
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
WOWI_API_TOKEN: ${{ secrets.WOWI_API_TOKEN }}
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}