Skip to content

Commit

Permalink
Switch packaging to GitHub Actions
Browse files Browse the repository at this point in the history
skip ci
  • Loading branch information
nebularg committed Oct 16, 2020
1 parent fa04a30 commit c23b41d
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 16 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Package addon

on:
push:
branches:
- master
- classic
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags') == true || contains(github.event.head_commit.message, 'skip ci') != true

steps:
- name: Checkout addon
uses: actions/checkout@v1
with:
fetch-depth: 100

- name: Run luacheck
uses: BigWigsMods/actions/luacheck@master
with:
args: -qo 011

- name: Package
uses: BigWigsMods/packager@master
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
WOWI_API_TOKEN: ${{ secrets.WOWI_API_TOKEN }}
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Check PR

on: [pull_request]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout addon
uses: actions/checkout@v2

- name: Run luacheck
uses: BigWigsMods/actions/luacheck@master
with:
args: -qo 011
1 change: 0 additions & 1 deletion .pkgmeta
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package-as: Transcriptor

ignore:
- .travis.yml
- README.md
- ISSUE_TEMPLATE.md
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

0 comments on commit c23b41d

Please sign in to comment.