forked from WeakAuras/WeakAuras2
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.51 KB
/
pull_request.yml
File metadata and controls
51 lines (40 loc) · 1.51 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
name: PR-CI
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install and run Luacheck
run: |
sudo apt-get install luarocks
luarocks install --local luacheck
/home/runner/.luarocks/bin/luacheck . --no-color -q
- name: Update Build Date
run: sed -i "s/@build-time@/`date +%Y%m%d%H%M%S`/" WeakAuras/Init.lua
- name: Create Retail Package
run: curl -s https://raw.githubusercontent.com/BigWigsMods/packager/master/release.sh | bash -s -- -d -z
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
GITHUB_OAUTH: ${{ secrets.GITHUB_OAUTH }}
WOWI_API_TOKEN: ${{ secrets.WOWI_API_TOKEN }}
- uses: actions/upload-artifact@master
with:
name: WeakAuras-PR
path: .release/
- name: Create Classic Package
run: curl -s https://raw.githubusercontent.com/BigWigsMods/packager/master/release.sh | bash -s -- -d -z -g 1.13.5 -m .pkgmeta-classic
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
GITHUB_OAUTH: ${{ secrets.GITHUB_OAUTH }}
WOWI_API_TOKEN: ${{ secrets.WOWI_API_TOKEN }}
- uses: actions/upload-artifact@master
with:
name: WeakAuras-PR-classic
path: .release/
- name: Notify on Failure
if: failure()
env:
BUILD_STATUS: ${{ job.status }}
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
run: curl -s https://raw.githubusercontent.com/nebularg/actions-discord-webhook/master/send.sh | bash