Repository navigation
59 lines (49 loc) · 1.8 KB
/
Copy pathrelease.yml
File metadata and controls
59 lines (49 loc) · 1.8 KB
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
# Push a version tag (e.g. v1.0.1) to build the addon zip and upload it to CurseForge and
# GitHub Releases. Needs the repository secret CF_API_KEY (CurseForge API token) and the
# "## X-Curse-Project-ID" line in the .toc.
# The "check" job runs first: syntax, the mocked WoW run (every control clicked, quest log and
# nameplate scenarios) and the translations. If any of it fails, nothing is uploaded.
name: Package and release
on:
push:
tags:
- "v*"
# Run by hand (Actions tab or "gh workflow run") to try the checks; only a tag uploads.
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Install LuaJIT (Lua 5.1, like WoW)
run: sudo apt-get update -qq && sudo apt-get install -y -qq luajit
- name: Syntax
run: |
for f in CSCoderMinimap.lua Locales.lua CSCoder_QuestIndicator.lua; do
luajit -e "assert(loadfile('$f'))" && echo "$f OK"
done
- name: Mocked WoW run
run: luajit tools/wowmock.lua .
- name: Mocked WoW run from old saved variables
run: luajit tools/wowmock.lua . old
- name: Mocked WoW run from shared-profile saved variables
run: luajit tools/wowmock.lua . v5
- name: Translations
run: luajit tools/check_translations.lua .
release:
needs: check
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-24.04
permissions:
contents: write
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
# Upload only for WoW Forever (Interface 16001 = 1.60.x), the client it is tested on.
- uses: BigWigsMods/packager@v2
with:
args: -g forever