diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..c10f104 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +name: Build + +on: + workflow_dispatch: + push: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + with: + submodules: true + - uses: actions/setup-node@v4 + with: + node-version: '20' + - name: build + run: | + npm install -g pnpm + pnpm install + tsc + cp package.json dist/ + - name: pack plugin + run: | + cd dist + zip -r ../xianyubb-bot.zip . + - name: upload + uses: actions/upload-artifact@v4 + with: + name: xianyubb-bot + path: xianyubb-bot.zip