mirror of
https://github.com/PreMiD/PreMiD.git
synced 2026-04-06 04:41:58 +02:00
🛠 GitHub actions refinement
This commit is contained in:
12
.github/deploy.ts
vendored
12
.github/deploy.ts
vendored
@@ -16,20 +16,12 @@ sftp
|
||||
let output = createWriteStream("app.zip"),
|
||||
archive = archiver("zip");
|
||||
|
||||
console.log(readdirSync(`../dist/`));
|
||||
|
||||
archive.directory(
|
||||
`../dist/PreMiD-${platform()}-${arch()}`,
|
||||
`PreMiD-${platform()}-${arch()}`
|
||||
);
|
||||
archive.directory(`../dist/`, platform());
|
||||
|
||||
output.on("close", function() {
|
||||
console.log("Uploading...");
|
||||
sftp
|
||||
.fastPut(
|
||||
"app.zip",
|
||||
`/home/PreMiD/builds/PreMiD-${platform()}-${arch()}.zip`
|
||||
)
|
||||
.fastPut("app.zip", `/home/PreMiD/builds/${platform()}.zip`)
|
||||
.then(() => {
|
||||
console.log("Done!");
|
||||
sftp.end();
|
||||
|
||||
Reference in New Issue
Block a user