Remove old Classic compatibility code #78
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |