diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c29a356 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,31 @@ +name: Release + +on: + push: + tags: + - '[0-9]*' + - 'v[0-9]*' + +jobs: + build: + + runs-on: ubuntu-latest + env: + CF_API_KEY: ${{ secrets.CF_API_KEY }} + GITHUB_OAUTH: ${{ secrets.GH_OAUTH }} + WOWI_API_TOKEN: ${{ secrets.WOWI_API_TOKEN }} + steps: + - uses: actions/checkout@v1 + - name: Install and run Luacheck + run: | + sudo apt-get install luarocks + luarocks install --local luacheck + /home/runner/.luarocks/bin/luacheck . --no-color -q + + - name: Create Package + run: curl -s https://raw.githubusercontent.com/BigWigsMods/packager/master/release.sh | bash; + if: '!contains( github.ref, ''beta'')' + + - name: Create Pre-Release Package + run: curl -s https://raw.githubusercontent.com/BigWigsMods/packager/master/release.sh | bash -s -- -p 0 -w 0; + if: 'contains( github.ref, ''beta'')' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4cd0e01..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: minimal - -addons: - apt: - packages: - - luarocks - -install: luarocks install --local luacheck - -before_script: /home/travis/.luarocks/bin/luacheck . --no-color -qo "011" - -script: curl -s https://raw.githubusercontent.com/BigWigsMods/packager/master/release.sh | bash - -branches: - only: - - /^\d+\.\d+(\.\d+)?(-\S*)?$/ - -notifications: - email: - on_success: never - on_failure: always \ No newline at end of file