This repository has been archived by the owner on May 2, 2022. It is now read-only.
Add files for GH Actions deployment to WordPress.org #104
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the Change
Adds the following as a starting point for using GitHub Actions to deploy plugins to the WordPress.org repository, particularly helpful for people who use this repo as a template directly on GitHub:
.github/workflows/dotorg-deploy.yml
.github/workflows/dotorg-asset-readme-update.yml
.wordpress-org/README.md
.distignore
The
.wordpress-org
directory contains aREADME.md
for two reasons: one, you can't commit an empty directory in Git, and two, I don't want to potentially propagate the same imagery for a bunch of plugins if everything runs immediately, since that asset/readme update happens on pushes tomaster
.Alternate Designs
n/a - however, I would like a review on the contents on
.distignore
, if there's anything else that should typically be excluded from deployment to WordPress.org post-build.Benefits
People using this repository for GitHub-based repositories (e.g. via template functionality in the web UI) who want to deploy to WordPress.org will be able to get up and running much more easily.
Possible Drawbacks
People who don't want to deploy to .org will need to delete extra things. It may also trigger a readme/asset update attempt on initial copy using the template functionality, although it should fail since the secrets won't have been set yet.
Verification Process
Can't really verify this in a sane way at the moment but these are mostly copied from functioning examples.
Checklist:
Applicable Issues
Fixes #100
Changelog Entry
n/a, maybe this project needs a changelog