-
Notifications
You must be signed in to change notification settings - Fork 12
46 lines (41 loc) · 1.22 KB
/
package.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
name: Package Addon (Mainline)
on:
push:
branches: [ master ]
tags: [ '*' ]
paths-ignore:
- '.github/**'
- 'tools/**'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install luarocks
run: sudo apt-get install luarocks
- name: Install luacheck
run: luarocks install --local luacheck
- name: Run luacheck
run: ~/.luarocks/bin/luacheck . --no-color -q
build:
needs: lint
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
fetch-depth: 0 # reads history for commit changelog
- uses: kemayo/actions-recent-changelog@v1
if: startsWith(github.ref, 'refs/tags')
with:
input: CHANGELOG.md
output: RECENT_CHANGES.md
- name: Create Mainline Package
uses: BigWigsMods/packager@master
with:
args: -S
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
WOWI_API_TOKEN: ${{ secrets.WOWI_API_TOKEN }}
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}