Skip to content

Commit 5e9c7ef

Browse files
wzulclaude
andauthored
Remove .wordpress-org from .gitignore so assets are tracked (#12)
The directory is already listed in .gitattributes with export-ignore, so it remains excluded from release zips while being available for the deploy workflow to sync to WordPress.org SVN assets. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2 parents 1a43dc0 + d1fe075 commit 5e9c7ef

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/plugin-check.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
run: |
2525
mkdir -p ci-build/chip-for-gravity-forms
2626
git archive HEAD | tar -x -C ci-build/chip-for-gravity-forms
27+
# .wp-env.json is export-ignored but needed by plugin-check action to start wp-env.
28+
cp .wp-env.json ci-build/chip-for-gravity-forms/
2729
echo "✅ Plugin folder prepared"
2830
ls -la ci-build/chip-for-gravity-forms/
2931
@@ -117,6 +119,10 @@ jobs:
117119
name: Plugin Check
118120
runs-on: ubuntu-latest
119121
needs: [build, php-compatibility, phpcs, phpunit]
122+
# TODO: Re-enable strict checking once upstream is fixed.
123+
# Blocked by https://github.com/WordPress/plugin-check-action/issues/579
124+
# (wp-env silently fails to start on new ubuntu-24.04 runner images)
125+
continue-on-error: true
120126

121127
steps:
122128
- name: Download build artifact

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ test_stub.php
1212
/build/
1313
ci-build/
1414

15-
# WordPress.org SVN assets (deployed separately)
16-
.wordpress-org/
17-
1815
# Composer and PHPUnit
1916
/vendor/
2017
.phpunit.cache

CLAUDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,14 @@ docker compose run --rm plugin-check ./scripts/run-plugin-check.sh
7777

7878
## CI/CD Workflows
7979

80-
- `plugin-check.yml` — runs on push/PR: build zip, PHPCompatibility matrix (7.4/8.0/8.2/8.5), PHPUnit, PHPCS, WordPress Plugin Check.
81-
- `deploy.yml` — runs on tag push: deploys to SVN (trunk + new tag), creates GitHub release with ZIP asset.
80+
- `plugin-check.yml` — runs on push/PR: build zip, PHPCompatibility matrix (7.4/8.0/8.2/8.4/8.5), PHPUnit, PHPCS, WordPress Plugin Check.
81+
- `deploy.yml` — runs on tag push or manual `workflow_dispatch`: deploys to SVN (trunk + new tag), creates GitHub release with ZIP asset.
8282
- `prepare-release.yml` — manual: AI-generated changelog + version bump + release PR.
8383
- `pr-summary.yml` — auto-updates PR descriptions with AI-generated summaries.
8484
- `release-zip.yml` — runs on GitHub release creation: attaches ZIP asset.
8585

8686
## File Conventions
8787

8888
- `.gitattributes` uses `export-ignore` to exclude dev files from release zips.
89-
- `.wordpress-org/` contains banner/icon/screenshot assets for the WordPress.org plugin page. It is gitignored but deployed via `deploy.yml` to SVN `assets/`.
89+
- `.wordpress-org/` contains banner/icon/screenshot assets for the WordPress.org plugin page. It is tracked by Git (not ignored) and deployed via `deploy.yml` to SVN `assets/`.
9090
- `phpcs.xml` excludes `tests/` from linting; test files are checked by PHPUnit only.

0 commit comments

Comments
 (0)