Skip to content

Commit 82260ac

Browse files
committed
new build step
1 parent 2a1108f commit 82260ac

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

.deployignore

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.gitignore
22
composer.lock
3-
phpcs.xml*
3+
phpcs.xml
44
.babelrc
55
.env.dist
66
.editorconfig
@@ -12,3 +12,20 @@ docker-compose.yml
1212
docker
1313
test_results
1414
node_modules
15+
.DS_Store
16+
.husky
17+
jest-setup.js
18+
jest.config.js
19+
local
20+
phpmd.xml.dist
21+
phpstan.neon.dist
22+
phpunit-integration-multisite.xml
23+
phpunit-integration.xml
24+
phpunit.xml
25+
playwright.config.ts
26+
tsconfig.json
27+
.nvmrc
28+
types
29+
tests
30+
src
31+
bin

.github/workflows/plugin-build.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,17 @@ jobs:
3939
- name: JS build
4040
run: yarn build
4141

42+
- name: Apply deployignore
43+
run: |
44+
FILE=.deployignore
45+
if [ -f "$FILE" ]; then
46+
cat .deployignore | xargs rm -rf
47+
fi
48+
4249
- name: Create and push built branch
4350
run: |
44-
git checkout -b main-built
51+
git checkout main-built
4552
git add -A # Stage all changes, including untracked files
46-
git rm --cached -r .husky || true
47-
git rm --cached -r node_modules || true
4853
git ls-files --ignored --exclude-standard -o -z | xargs -0 git rm --cached # Remove ignored files from the index
49-
git commit -m "Built WordPress plugin"
54+
git commit -m "Built WordPress plugin" --no-verify
5055
git push origin main-built

0 commit comments

Comments
 (0)