Image/Resouce Hosting With GITHUB API
-
Create github access token
-
reset variable
gh_repo=resources
gh_host=https://api.github.com
gh_owner=hyongbai
gh_user=hyongbai
[email protected]
source uploader.sh
GITHUB_TOKEN={your token}
gh_up {file} {remote_path}