Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .deployignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.gitignore
composer.lock
phpcs.xml*
phpcs.xml
.babelrc
.env.dist
.editorconfig
Expand All @@ -12,3 +12,20 @@ docker-compose.yml
docker
test_results
node_modules
.DS_Store
.husky
jest-setup.js
jest.config.js
local
phpmd.xml.dist
phpstan.neon.dist
phpunit-integration-multisite.xml
phpunit-integration.xml
phpunit.xml
playwright.config.ts
tsconfig.json
.nvmrc
types
tests
src
bin
13 changes: 9 additions & 4 deletions .github/workflows/plugin-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,17 @@ jobs:
- name: JS build
run: yarn build

- name: Apply deployignore
run: |
FILE=.deployignore
if [ -f "$FILE" ]; then
cat .deployignore | xargs rm -rf
fi

- name: Create and push built branch
run: |
git checkout -b main-built
git checkout main-built
git add -A # Stage all changes, including untracked files
git rm --cached -r .husky || true
git rm --cached -r node_modules || true
git ls-files --ignored --exclude-standard -o -z | xargs -0 git rm --cached # Remove ignored files from the index
git commit -m "Built WordPress plugin"
git commit -m "Built WordPress plugin" --no-verify
git push origin main-built