[build&ci] [no ci] Branch rename to main
This commit is contained in:
parent
273f36594f
commit
36f709b60c
2 changed files with 2 additions and 7 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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!`);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue