Skip to content

Merge branch 'master' of https://github.com/SIsilicon/WorldEdit-BE #329

Merge branch 'master' of https://github.com/SIsilicon/WorldEdit-BE

Merge branch 'master' of https://github.com/SIsilicon/WorldEdit-BE #329

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Build
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events on master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
target: [debug, release]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: montudor/action-zip@v1
- uses: bahmutov/npm-install@v1
with:
node-version: 16
- uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install polib
run: pip install polib
- name: Test eslint
run: npx eslint "./src/**"
- name: Run build script (${{ matrix.target }})
run: python build.py --clean --target ${{ matrix.target }}
- name: Archive addon artifact (release)
uses: actions/upload-artifact@v3
if: ${{ matrix.target == 'release'}}
with:
name: mcaddon-artifact-release
path: builds/WorldEdit.mcaddon
- name: Archive addon artifact (debug)
uses: actions/upload-artifact@v3
if: ${{ matrix.target == 'debug'}}
with:
name: mcaddon-artifact-debug
path: |
builds/WorldEditBP
builds/WorldEditRP