Skip to content

Commit c474bea

Browse files
committed
fix: build to same folder structure to simplify merge
1 parent 34b4508 commit c474bea

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ jobs:
243243
with:
244244
name: connect-files
245245
path: |
246-
plugin/deploy/release/*
246+
plugin/deploy/release/plugins/*.plg
247+
plugin/deploy/release/archive/*.txz
247248
retention-days: 5
248249
if-no-files-found: error
249250

plugin/scripts/build-plugin-and-txz.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ const createBuildDirectory = async () => {
2828
await execSync(`rm -rf deploy/release/*`);
2929
await execSync(`rm -rf deploy/test/*`);
3030
await mkdir("deploy/pre-pack", { recursive: true });
31-
await mkdir("deploy/release", { recursive: true });
31+
await mkdir("deploy/release/plugins", { recursive: true });
32+
await mkdir("deploy/release/archive", { recursive: true });
3233
await mkdir("deploy/test", { recursive: true });
3334
};
3435

@@ -56,7 +57,7 @@ const buildTxz = async (): Promise<{
5657
.replace("T", ".");
5758
const txzPath = path.join(
5859
startingDir,
59-
"deploy/release",
60+
"deploy/release/archive",
6061
`${pluginName}-${version}.txz`
6162
);
6263
const prePackDir = join(startingDir, "deploy/pre-pack");
@@ -144,7 +145,7 @@ const buildPlugin = async ({
144145
// Set up paths
145146
const newPluginFile = path.join(
146147
startingDir,
147-
"/deploy/release/",
148+
"/deploy/release/plugins/",
148149
`${pluginName}${type === "production" ? "" : `.${type}`}.plg`
149150
);
150151

0 commit comments

Comments
 (0)