Skip to content

Commit 453e0e0

Browse files
committed
install wordpress
1 parent 7db89c2 commit 453e0e0

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/build-and-deploy.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,29 @@ jobs:
6868
- name: Install dependencies
6969
run: npm ci
7070

71+
- name: Setup minimal WordPress
72+
run: |
73+
mkdir -p /tmp/wp
74+
cd /tmp/wp
75+
76+
wp core download --allow-root
77+
wp config create \
78+
--dbname=wp \
79+
--dbuser=root \
80+
--dbpass=root \
81+
--dbhost=127.0.0.1 \
82+
--skip-check \
83+
--allow-root
84+
7185
- name: Build assets
7286
run: |
7387
npm run build
7488
composer install --no-dev
7589
npm run production
76-
npm run makepot
90+
wp i18n make-pot --exclude='node_modules,vendor' . languages/tutorstarter.pot \
91+
--path=/tmp/wp \
92+
--allow-root
93+
7794
env:
7895
NODE_ENV: production
7996
NODE_OPTIONS: --openssl-legacy-provider

0 commit comments

Comments
 (0)