Rewrite upload-to-github.sh for current GitHub API