From 36f709b60c03bb543e7f788066f4975ddf8e815f Mon Sep 17 00:00:00 2001 From: amsyarasyiq <82711525+amsyarasyiq@users.noreply.github.com> Date: Tue, 30 Apr 2024 20:58:06 +0800 Subject: [PATCH] [build&ci] [no ci] Branch rename to main --- .github/workflows/build.yml | 6 ++---- build.mjs | 3 --- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dd66687..c23e742 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,5 @@ name: Build -on: - push: - branches: [main, legacy] +on: [push] jobs: build: @@ -14,7 +12,7 @@ jobs: - name: Checkout builds uses: actions/checkout@v4 with: - repository: ${{ github.ref_name == 'legacy' && 'pyoncord/detta-builds' || 'pyoncord/builds' }} + repository: 'pyoncord/detta-builds' path: "builds" token: ${{ secrets.PYLIX_TOKEN }} - uses: actions/setup-node@v4 diff --git a/build.mjs b/build.mjs index 54822f7..12bff34 100644 --- a/build.mjs +++ b/build.mjs @@ -2,10 +2,8 @@ import swc from "@swc/core"; import { execSync } from "child_process"; import esbuild from "esbuild"; -import { copyFileSync } from "fs"; import { readFile } from "fs/promises"; import { createServer } from "http"; -import path from "path"; import { argv } from "process"; const isFlag = (s, l) => argv.slice(2).some(c => c === `-${s}` || c === `--${l}`); @@ -73,7 +71,6 @@ try { build.onEnd(result => { const { outfile } = build.initialOptions; - copyFileSync(outfile, path.resolve(outfile, "..", "pyondetta.js")); console.log(`Built with ${result.errors?.length} errors!`); }); }