A Wordpress plugin to offload all attachments to a GitHub repo.
- Download this repo/plugin as zip
- Install plugin by uploading the zip to your wordpress installation
- Create an empty github repo (this is where all wordpress attachments will be uploaded to)
- Define required parameters on wp-config.php (see next section)
- Start uploading new attachments to your wordpress gallery (everything will be offloaded to the github repo)
Define these values on your wp-config.php
Read here how to create a github token: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
define('WP_OFFLOAD_GITHUB_REPO', 'owner/repo');
define('WP_OFFLOAD_GITHUB_BRANCH', 'uploads');
define('WP_OFFLOAD_GITHUB_TOKEN', '....');