manifest / integrations / w2g-sync
WP 2 GitHub Sync
A plugin to automatically sync WordPress blog posts to GitHub.
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/zimiyu/w2g-sync/archive/refs/heads/main.zipA plugin to automatically sync WordPress blog posts to GitHub.
功能
- 把新发布文章直接同步到github指定的仓库
- 老文章快捷菜单“Push to GitHub”一键推送到github仓库
使用条件
- 有一个wordpress博客
- 有一个github账户
使用方法
-
下载插件压缩包安装到wordpress博客并激活
-
设置方法
2.1. 在wordpress后台点击【设置】-【WP to GitHub Sync】进入设置界面
2.2. 在设置项填入对应的 GitHub Personal Access Token 和 GitHub Repository ,注意:GitHub Repository 结构是【用户名/仓库名】,如 zimiyu/W2G-sync .
2.3. 保存,然后新发布文章就会一markdown的格式同步到2.2指定的仓库中.
-
GitHub Personal Access Token 的获取方法请参考github文档.