-
Notifications
You must be signed in to change notification settings - Fork 9
54 lines (46 loc) · 1.6 KB
/
deploy.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
on:
push:
tags:
- "v*"
- "!**-alpha**"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Luacheck tests
uses: nebularg/actions-luacheck@v1
with:
args: --quiet
- name: Run personal tests
run: |
lua DRList-1.0/tests/test-classic.lua
lua DRList-1.0/tests/test-tbc.lua
lua DRList-1.0/tests/test-wotlk.lua
lua DRList-1.0/tests/test-cata.lua
lua DRList-1.0/tests/test-retail.lua
lua DRList-1.0/tests/test-retail.lua -frFR
- name: Check if lib minor versions matches
run: |
version_file1=$(sed -n 's/local MAJOR, MINOR = "DRList-1.0", \(.*\)--.*/\1/p' DRList-1.0/DRList-1.0.lua)
version_file2=$(sed -n 's/local MAJOR, MINOR = "DRList-1.0", \(.*\)--.*/\1/p' DRList-1.0/Spells.lua)
if [ "$version_file1" != "$version_file2" ]; then
echo "::error::DRList-1.0.lua minor version does not match Spells.lua version."
fi
- name: Generate docs with LDoc
uses: lunarmodules/[email protected]
with:
args: DRList-1.0/DRList-1.0.lua
- name: Create and deploy packages
uses: BigWigsMods/packager@v2
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}
- name: Deploy ldocs to Github Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: doc