Skip to content

Commit 13d6b04

Browse files
authored
Build software into sub directories (#196)
1 parent b0b18e1 commit 13d6b04

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/release-build.yaml

+18-3
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,15 @@ jobs:
2525
run: npm ci && npm run build
2626

2727
- name: Build plugin
28-
working-directory: './plugin'
29-
run: zip -r ../plugin.zip . [email protected]
28+
run: |
29+
mkdir -p temp/wpcloud-station
30+
cd plugin
31+
zip -r ../temp/wpcloud-station/plugin.zip . [email protected]
32+
cd ../temp/wpcloud-station
33+
unzip plugin.zip
34+
cd ../..
35+
zip -r ./plugin.zip temp/wpcloud-station [email protected]
36+
rm -rf temp
3037
3138
- name: Setup Node for theme
3239
uses: actions/setup-node@v2
@@ -39,7 +46,15 @@ jobs:
3946

4047
- name: Build Theme
4148
working-directory: './theme'
42-
run: zip -r ../theme.zip . [email protected]
49+
run: |
50+
mkdir -p temp/wpcloud-station
51+
cd theme
52+
zip -r ../temp/wpcloud-station/theme.zip . [email protected]
53+
cd ../temp/wpcloud-station
54+
unzip theme.zip
55+
cd ../..
56+
zip -r ./theme.zip temp/wpcloud-station [email protected]
57+
rm -rf temp
4358
4459
- name: Get release
4560
id: get_release

0 commit comments

Comments
 (0)