Skip to content

Commit

Permalink
Build software into sub directories (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnstn authored Sep 9, 2024
1 parent b0b18e1 commit 13d6b04
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/release-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@ jobs:
run: npm ci && npm run build

- name: Build plugin
working-directory: './plugin'
run: zip -r ../plugin.zip . [email protected]
run: |
mkdir -p temp/wpcloud-station
cd plugin
zip -r ../temp/wpcloud-station/plugin.zip . [email protected]
cd ../temp/wpcloud-station
unzip plugin.zip
cd ../..
zip -r ./plugin.zip temp/wpcloud-station [email protected]
rm -rf temp
- name: Setup Node for theme
uses: actions/setup-node@v2
Expand All @@ -39,7 +46,15 @@ jobs:

- name: Build Theme
working-directory: './theme'
run: zip -r ../theme.zip . [email protected]
run: |
mkdir -p temp/wpcloud-station
cd theme
zip -r ../temp/wpcloud-station/theme.zip . [email protected]
cd ../temp/wpcloud-station
unzip theme.zip
cd ../..
zip -r ./theme.zip temp/wpcloud-station [email protected]
rm -rf temp
- name: Get release
id: get_release
Expand Down

0 comments on commit 13d6b04

Please sign in to comment.