From 81f7d2c718b7fcbab7930bc085994671877f147c Mon Sep 17 00:00:00 2001 From: Benjamin Staneck Date: Tue, 11 Jul 2023 19:24:17 +0200 Subject: [PATCH] Add packager --- .github/workflows/build.yml | 36 ++++++++++++++++++++++++++++++++++++ LibRangeCheck-3.0.toc | 1 + 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..2abd877 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: + - main + tags: + - "*" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 200 + + # - name: Install and run Luacheck + # uses: nebularg/actions-luacheck@v1 + # with: + # args: "--no-color -q" + # annotate: warning + + - name: Create Package + uses: BigWigsMods/packager@v2 + env: + CF_API_KEY: ${{ secrets.CF_API_KEY }} + GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} + + - name: Send Status to Discord + uses: nebularg/actions-discord-webhook@v1 + with: + webhook_url: ${{ secrets.WEBHOOK_URL }} + status: ${{ job.status }} + if: failure() diff --git a/LibRangeCheck-3.0.toc b/LibRangeCheck-3.0.toc index 93ec379..b3fa49d 100644 --- a/LibRangeCheck-3.0.toc +++ b/LibRangeCheck-3.0.toc @@ -4,6 +4,7 @@ ## Author: The WoWUIDev Community ## Version: @project-version@ ## LoadOnDemand: 1 +## X-Curse-Project-ID: 887398 ## X-Category: Library ## X-Credits: mitch0 ## X-License: MIT