Skip to content

Commit 207b4e9

Browse files
committed
update buildWordPressPlugin.php
1 parent 4bc3a5a commit 207b4e9

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.github/workflows/deployWordPressPlugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ permissions:
77
id-token: write
88
jobs:
99
tag:
10-
name: New tag
10+
name: Push New Release
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout

dev/buildWordPressPlugin.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@
66
$helper = new WpBuildHelper($baseDir);
77
$version = \bdk\Debug::VERSION;
88

9-
// move src/* to vendor/bdk
9+
10+
11+
echo 'Move src/* to vendor/bdk' . "\n";
1012
$files = \glob($baseDir . '/src/*');
1113
foreach ($files as $filepath) {
1214
$filepathNew = $baseDir . '/vendor/bdk/' . \basename($filepath);
1315
$helper->rename($filepath, $filepathNew);
1416
}
1517

16-
// move LICENSE and README.md to vendor/bdk/Debug
18+
echo 'move LICENSE and README.md to vendor/bdk/Debug' . "\n";
1719
$files = [
1820
$baseDir . '/LICENSE',
1921
$baseDir . '/README.md',
@@ -23,14 +25,17 @@
2325
$helper->rename($filepath, $filepathNew);
2426
}
2527

26-
// move wordpress plugin files to root/src
28+
\clearstatcache()
29+
30+
echo 'move wordpress plugin files to src' . "\n";
2731
$files = \glob($baseDir . '/vendor/bdk/Debug/FrameWork/WordPress/*');
32+
echo 'wordpress files: ' . \print_r($files, true) . "\n";
2833
foreach ($files as $filepath) {
2934
$filepathNew = $baseDir . '/src/' . \basename($filepath);
3035
$helper->rename($filepath, $filepathNew);
3136
}
3237

33-
// move main plugin files to root
38+
echo 'move plugin entry point to root' . "\n";
3439
$files = [
3540
$baseDir . '/src/debug-console-php.php',
3641
$baseDir . '/src/readme.txt',
@@ -40,7 +45,7 @@
4045
$helper->rename($filepath, $filepathNew);
4146
}
4247

43-
// remove files we don't need for wordpress plugin
48+
echo 'Remove non-wordpress frameworks' . "\n";
4449
$files = [
4550
$baseDir . '/vendor/bdk/Debug/Framework',
4651
];

0 commit comments

Comments
 (0)