Skip to content

Internal: Add deploy scripts - #234

Open
KingYes wants to merge 4 commits into
masterfrom
tweak/deploy-ci
Open

Internal: Add deploy scripts#234
KingYes wants to merge 4 commits into
masterfrom
tweak/deploy-ci

Conversation

@KingYes

@KingYes KingYes commented Aug 23, 2026

Copy link
Copy Markdown
Member

✨ PR Description

1. Problem & Context

Adds automated release workflow to handle version bumping, validation, GitHub releases, and WordPress.org deployments. Enables controlled releases from master branch by authorized actors.

2. What Changed (Where)

File Change
scripts/ 4 new validation/version scripts (bash + Node.js)
.github/workflows/release.yml New 198-line release orchestration workflow
.github/workflows/*.yml Added workflow_call trigger to PHP linting/testing
package.json 3 new npm scripts for versioning + zip packaging
.build-rsync-exclude Excludes scripts/ from production build

3. How It Works

Release workflow (triggered manually with patch/minor/major bump): computes next version → validates readme changelog entry exists → bumps package.json → syncs version to plugin files → builds package → validates artifacts → creates git commit/tag → generates changelog from commits → conditionally pushes and deploys to GitHub Releases + WordPress.org SVN. Dry-run mode skips all git/deploy operations.

Helper scripts: next-version.js (semver calculation), sync-version.js (writes version to PHP/readme), validate-readme-changelog.js (ensures changelog section + bullet points exist), validate-build-files.sh (verifies plugin files, version tags, excludes list).

4. Risks

Actor whitelist (KingYes, bainternet, arielk) requires maintenance if team changes. WordPress.org deployment uses hardcoded SVN credentials—ensure SVN_USERNAME/SVN_PASSWORD secrets are properly scoped. Dry-run validation logic could diverge from actual deploy if scripts aren't kept in sync.

Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how

@wiz-9a149474ff

wiz-9a149474ff Bot commented Aug 23, 2026

Copy link
Copy Markdown

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities -
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations 2 Low
SAST Finding SAST Findings 1 Medium
Software Management Finding Software Management Findings -
Total 1 Medium 2 Low

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try the Wiz Code extension for VS Code, JetBrains, or Visual Studio.

Comment thread .github/workflows/release.yml Fixed
Comment thread .github/workflows/release.yml Fixed
Comment thread .github/workflows/release.yml Fixed
Comment thread .github/workflows/release.yml Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants