-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (39 loc) · 1.19 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
name: Package addon
on:
push:
branches:
- '**'
tags:
- '**'
paths-ignore:
- '.github/**'
- '*.md'
# allows this workflow to be run manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone project
uses: actions/checkout@v4
with:
fetch-depth: 0 # gets git history for changelogs
- name: Run luacheck
uses: BigWigsMods/actions/luacheck@master
with:
args: -q
# release for tags or pushes to main
- name: Package and release
if: ${{ github.ref_type == 'tag' || github.ref == 'refs/heads/main' }}
uses: BigWigsMods/packager@v2
env:
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
CF_API_KEY: ${{ secrets.CF_API_KEY }}
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}
WOWI_API_TOKEN: ${{ secrets.WOWI_API_TOKEN }}
# package but don't release for pushes to other branches
- name: Package only
if: ${{ github.ref_type == 'branch' && github.ref != 'refs/heads/main' }}
uses: BigWigsMods/packager@v2
env:
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}