diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a19c694 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 }} diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..fa269a9 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -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 diff --git a/.pkgmeta b/.pkgmeta index 003fc1a..c28dad4 100644 --- a/.pkgmeta +++ b/.pkgmeta @@ -1,6 +1,5 @@ package-as: Transcriptor ignore: - - .travis.yml - README.md - ISSUE_TEMPLATE.md diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 66452ec..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: minimal - -addons: - apt: - packages: - - luarocks - -install: luarocks install --local luacheck -before_script: /home/travis/.luarocks/bin/luacheck . -qo "011" -script: curl -s https://raw.githubusercontent.com/BigWigsMods/packager/master/release.sh | bash - -notifications: - email: - on_success: never - on_failure: always