Skip to content

Replace 10up deploy with manual release workflow - #68

Merged
lloc merged 1 commit into
dev/mainfrom
ci/wordpress-org-release
Oct 26, 2026
Merged

lloc merged 1 commit into
dev/mainfrom
ci/wordpress-org-release

Conversation

@InpsydeNiklas

Copy link
Copy Markdown
Member

This removes deploy.yml (the 10up deploy on every tag push) and adds a manual Release workflow.

Stacked on #67 (build-and-distribute). Review only the last commit until #67 is merged.

Jobs

  • guard: runs from dev/main only, and VERSION must be MAJOR.MINOR.PATCH.
  • build: build-and-distribute with PACKAGE_VERSION: VERSION, so main carries the released version and the source SHA.
  • plugin-check-built: Plugin Check on the built package, strict, with no ignored codes. A failure blocks the release.
  • tag: checks that main has this run's SHA and version, then tags it with the deploy bot's key. It reuses the tag if it's already on this build.
  • wporg: wordpress-org-release.yml from inpsyde/reusable-workflows publishes that tag. DRY_RUN defaults to true, so a careless click never publishes.
  • github-release: runs after a real WordPress.org release only, never on a dry run. It creates the GitHub Release with multisyde.zip and the build provenance attestation (johnbillion/action-wordpress-plugin-attestation, which compares against the zip WordPress.org serves).

The token is read-only everywhere except github-release. There is no trunk-only mode: the strict Stable tag check would always fail it, and the dry run already previews trunk.

Release procedure (CONTRIBUTING.md → Releasing)

  1. On dev/main, bump Version: in multisyde.php, plus Stable tag and the changelog in readme.txt, and merge.
  2. Run Release from dev/main with that VERSION. It's a dry run by default. Review the run, then run it again with DRY_RUN off.

Tested

On a local Gitea, against the real WordPress.org SVN with dummy credentials:

  • build and tag
  • all wporg checks up to svn commit, which failed at authentication as intended
  • rsync output matching the built main
  • Plugin Check blocking a bad build
  • the guard rejecting other refs
  • a version / Stable tag mismatch being rejected

Only verifiable here on GitHub:

  • DRY_RUN actually reaching the called workflow (a Gitea bug passes booleans through workflow_call as false)
  • the GitHub Release
  • the attestation

@InpsydeNiklas
InpsydeNiklas requested a review from lloc as a code owner October 26, 2026 11:45
@github-actions

Copy link
Copy Markdown

🔍 WordPress Plugin Check Report

⚠️ Status: Passed with warnings

📊 Report

🎯 Total Issues ❌ Errors ⚠️ Warnings
1 0 1

⚠️ Warnings (1)

📁 modules/SiteActivePlugins/Feature.php (1 warning)
📍 Line 🔖 Check 💬 Message
169 WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "self::FILTER_MAX_SITES".

🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

@lloc
lloc added this pull request to stack #71 October 26, 2026 12:09
Base automatically changed from ci/build-and-distribute to dev/main October 26, 2026 12:26
deploy.yml published to WordPress.org on any tag push, from a tree it
built itself. Releases now run only through the manual Release workflow,
and deploy.yml goes away so nothing can publish twice.

- Release runs from dev/main only. It builds main through
  build-and-distribute with PACKAGE_VERSION set to VERSION, so the
  released commit is the built, version-stamped one.
- Plugin Check runs on the built package without ignore-codes. A failing
  check blocks the tag and the WordPress.org step.
- The tag job checks that main carries this run's SHA and VERSION before
  tagging it, and reuses the tag when it already points to this build.
- wordpress-org-release publishes that tag. DRY_RUN defaults to true, so
  a careless click never publishes.
- The GitHub release and the attestation run on github.com only, after a
  real WordPress.org release, never on a dry run. The attestation
  compares against the zip WordPress.org serves, so it cannot run earlier.
- There is no trunk-only option: the strict Stable tag check would always
  fail it, and the dry run already previews trunk.
- The workflow token is read-only by default. Only the GitHub release
  job gets write access; tags are pushed with the deploy bot's key.
- CONTRIBUTING.md documents the release procedure.
@lloc
lloc force-pushed the ci/wordpress-org-release branch from dc9c60d to 9477ba7 Compare October 26, 2026 12:26

@lloc lloc left a comment

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.

LGTM

@lloc
lloc merged commit a70b022 into dev/main Oct 26, 2026
7 checks passed
@lloc
lloc deleted the ci/wordpress-org-release branch October 26, 2026 12:30
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.

2 participants