Skip to content

Commit 866c670

Browse files
committed
fix: custom blocks github artifact
1 parent 648c40a commit 866c670

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,17 @@ jobs:
4646
- name: Upload plugin bundle
4747
uses: actions/upload-artifact@v4
4848
with:
49-
name: plugin bundle
49+
name: plugin-bundle
5050
path: posts-bridge/assets/plugin.bundle.js
5151

52+
- name: Package custom blocks
53+
run: zip -r custom-blocks.zip posts-bridge/custom-blocks -x '*/src/*' -x '*/node_modules/*' -x '*/esbuild/*'
54+
5255
- name: Upload custom blocks
5356
uses: actions/upload-artifact@v4
5457
with:
55-
name: custom blocks
56-
path: posts-bridge/custom-blocks/*/build
58+
name: custom-blocks
59+
path: custom-blocks.zip
5760

5861
package:
5962
name: Prepare package
@@ -75,9 +78,18 @@ jobs:
7578
- name: Download build artifact
7679
uses: actions/download-artifact@v4
7780
with:
78-
name: build
81+
name: plugin-bundle
7982
path: posts-bridge/assets
8083

84+
- name: Download build artifact
85+
uses: actions/download-artifact@v4
86+
with:
87+
name: custom-blocks
88+
path: custom-blocks.zip
89+
90+
- name: Unpackage custom blocks
91+
run: unzip custom-blocks.zip
92+
8193
- name: Install dist archive
8294
run: wp package install wp-cli/dist-archive-command:@stable
8395

0 commit comments

Comments
 (0)