15
15
with :
16
16
ref : ${{ github.ref }}
17
17
18
- - name : Setup Node for plugin
19
- uses : actions/setup-node@v2
20
- with :
21
- node-version : ' 20.11'
22
- cache : ' npm'
23
- cache-dependency-path : ' ./plugin'
24
- - working-directory : ' ./plugin'
25
- run : npm ci && npm run build
26
18
27
- - name : Build plugin
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
36
- rm -rf temp
37
19
38
20
- name : Setup Node for theme
39
21
uses : actions/setup-node@v2
@@ -45,17 +27,37 @@ jobs:
45
27
run : npm ci && npm run build:css
46
28
47
29
- name : Build Theme
48
- working-directory : ' ./theme'
49
30
run : |
50
- mkdir -p temp/wpcloud-station
51
- cd theme
31
+ mkdir -p ./ temp/wpcloud-station
32
+ cd ./ theme
52
33
zip -r ../temp/wpcloud-station/theme.zip . [email protected]
53
34
cd ../temp/wpcloud-station
54
35
unzip theme.zip
55
36
cd ../..
56
37
zip -r ./theme.zip temp/wpcloud-station
57
38
rm -rf temp
58
39
40
+ - name : Setup Node for plugin
41
+ uses : actions/setup-node@v2
42
+ with :
43
+ node-version : ' 20.11'
44
+ cache : ' npm'
45
+ cache-dependency-path : ' ./plugin'
46
+
47
+ - working-directory : ' ./plugin'
48
+ run : npm ci && npm run build
49
+
50
+ - name : Build plugin
51
+ run : |
52
+ mkdir -p ./temp/wpcloud-station
53
+ cd ./plugin
54
+ zip -r ../temp/wpcloud-station/plugin.zip . [email protected]
55
+ cd ../temp/wpcloud-station
56
+ unzip plugin.zip
57
+ cd ../..
58
+ zip -r ./plugin.zip temp/wpcloud-station
59
+ rm -rf temp
60
+
59
61
- name : Get release
60
62
id : get_release
61
63
uses :
bruceadams/[email protected]
0 commit comments