Sync Markdown to WordPress posts
This repository is inspired by and forked from WordPressXMLRPCTools with the author’s permission under GNU General Public License.
The original repository is used by the author to update his WordPress posts and therefore contains a lot of commits. To make it cleaner, I decided to start a new repository and copy the essential files here.
Please refer to the original repo for the author’s motivation and philosophy of this project
This repository is just a code base. To use it, please go to m2w-example and click “Use thie template” to create a repository for your own WordPress.
In the repo you just created using the template:
Add the following GitHub Actions secrets
USERNAMEyour WordPress username
PASSWORDyour WordPress password
XMLRPC_PHPthe url of your
xmlrpc.php. Usually it is
M2W_VERSIONthe version of m2w (this repo). The latest version is recommended. You can go to Releases/Tags to find tag name you want to use as well
ENABLE_DELETIONwhether to delete the corresponding WordPress post when the Markdown gets deleted. Feel free to skip it if you don’t want to enable deletion
Clone the repo to your local and stay on
Add/modify/delete your post in
- Commit the changes to GitHub as you did for other repositories
- Wait for the GitHub Actions to complete
- Done! 🎉
Don’t forget to
git pullwhen the GitHub Actions is done, since it adds a new commit on GitHub. I sometimes forget about it and commit my changes, then there will be a conflict
Feel free to modify the README as long as
---end---and the lines in between are kept untouched