V6 initial #507

Merged
Sirherobrine23 merged 6 commits from V6_big_changes into main 2023-02-05 02:50:34 +00:00
2 changed files with 5 additions and 4 deletions
Showing only changes of commit 16b0c1137e - Show all commits

View File

@@ -16,6 +16,6 @@ execFileSync("java", ["-jar", buildFile, "--rev", version, "-o", __dirname], {
const SpigotFile = (await fs.readdir(__dirname)).find(file => file.endsWith(".jar"));
if (!SpigotFile) throw new Error("No spigot file found");
if (version === "latest") version = SpigotFile.split("-")[1].split(".")[0];
await oracleBucket.uploadFile(path.posix.join("SpigotBuild", version+".jar"), createReadStream(fileBuild));
if (version.trim().toLowerCase() === "latest") version = path.basename(SpigotFile, ".jar").split("-")[1];
await oracleBucket.uploadFile(path.posix.join("SpigotBuild", version+".jar"), createReadStream(path.join(__dirname, SpigotFile)));
await Promise.all((await fs.readdir(__dirname)).filter(file => file.endsWith(".jar")).map(file => fs.unlink(file)));

View File

@@ -7,8 +7,8 @@ on:
# branches:
# - main
# paths:
# - ".github/workflows/php_buid.yml"
# - ".github/uploadphp/**/*"
# - ".github/workflows/spigotBuild.yaml"
# - ".github/spigotBuilld/**/*"
jobs:
build:
@@ -83,5 +83,6 @@ jobs:
node-version: 18.x
- run: npm ci && node .github/spigotBuilld/index.mjs --version=${{ matrix.version || 'latest' }}
continue-on-error: true
env:
OCI_AUTHKEY: "${{ secrets.OCI_AUTHKEY }}"