V6 initial #507
4
.github/spigotBuilld/index.mjs
vendored
4
.github/spigotBuilld/index.mjs
vendored
@@ -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)));
|
5
.github/workflows/spigotBuild.yaml
vendored
5
.github/workflows/spigotBuild.yaml
vendored
@@ -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 }}"
|
Reference in New Issue
Block a user