Skip to content

ci: add WordPress.org deploy and PHP format workflows - #16

Open
mvdhoek1 wants to merge 3 commits into
mainfrom
ci/deploy-and-format-workflows
Open

mvdhoek1 wants to merge 3 commits into
mainfrom
ci/deploy-and-format-workflows

Conversation

@mvdhoek1

@mvdhoek1 mvdhoek1 commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@mvdhoek1
mvdhoek1 requested a review from a team as a code owner November 6, 2026 06:29
@mvdhoek1
mvdhoek1 requested review from Rovasch, ShunLuk, SimonvanWijhe, dtakken, ictbeheer, richardkorthuis and rivanuff and a balanced review from Copilot and removed request for a team November 6, 2026 06:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved deployment defects reject matching versions due to CRLF line endings and package the plugin without required runtime dependencies.

5 open issues
What changed in this PR

Adds GitHub Actions workflows to automate releases and PHP formatting for the WordPress plugin.

Changes:

  • Adds version checks, asset builds, WordPress.org deployment, and GitHub release creation, with a manual dry-run option.
  • Runs PHP formatting on relevant pushes to main and commits changes automatically.
  • Defines release exclusions to keep development files out of distributed packages.
File Description
.github/​workflows/​format-php.yml Automates PHP formatting and commits resulting changes.
.github/​workflows/​deploy.yml Adds release validation, builds, deployment, and ZIP publishing.
.distignore Excludes development files and tooling from release packages.

Review effort: Balanced

Comment thread .github/workflows/deploy.yml Outdated
- name: Check the version numbers
run: |
PLUGIN_VERSION=$(grep -m1 -E '^\s*\*\s*Version:' yard-deepl.php | awk '{print $NF}')
STABLE_TAG=$(grep -m1 -E '^Stable tag:' readme.txt | awk '{print $NF}')
Comment thread .github/workflows/deploy.yml Resolved
Comment thread .github/workflows/format-php.yml Resolved
Comment thread .github/workflows/format-php.yml Resolved

@YvetteNikolov YvetteNikolov left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overheen gescand, geen expert op workflows maar heb niks geks kunnen zien

@@ -0,0 +1,79 @@
name: Deploy to WordPress.org

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Misschien een andere filename bedenken dan deploy.yml om verwarring met onze deploy workflow te voorkomen https://github.com/yardinternet/workflows/blob/main/.github/workflows/deploy.yml

@SimonvanWijhe

Copy link
Copy Markdown
Member

Kun je ook dependabot config en automerge workflow toevoegen? Dan worden deze ook gemerged.

@mvdhoek1
mvdhoek1 force-pushed the ci/deploy-and-format-workflows branch from 57d5f27 to 32c662c Compare November 9, 2026 14:10
@mvdhoek1
mvdhoek1 requested a balanced review from Copilot November 9, 2026 14:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The release lacks required prefixed dependencies and will fail during initialization, while deployment reruns can attach newer plugin code to an older GitHub release.

3 open issues
4 resolved since last review

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The caller and reusable workflow share a concurrency group with cancellation enabled, causing automerge to cancel its own parent run instead of reliably completing the merge.

3 open issues
2 resolved since last review

Review effort: Balanced

Comment thread docs/RELEASING.md Resolved
@mvdhoek1
mvdhoek1 force-pushed the ci/deploy-and-format-workflows branch from d4591da to 223bd12 Compare November 10, 2026 12:01
@mvdhoek1
mvdhoek1 requested a balanced review from Copilot November 10, 2026 12:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The deployment workflow can reject valid releases due to classmap ordering differences and allows concurrent deployments of the same version to conflict during publication.

3 open issues
2 resolved since last review

Review effort: Balanced

Comment on lines +16 to +18
deploy:
name: Deploy new tag
runs-on: ubuntu-latest
exit 1
fi
# Strauss stamps every file with the build date; ignore those lines.
if ! diff -r -I 'Modified by .* using' "$COMMITTED" vendor-prefixed; then
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants