Skip to content

10.1.5

10.1.5 #33

Workflow file for this run

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@v3
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 }}