To auto-generate a GitHub Gist from a folder with files, you can use the GitHub API and a scripting language like Python or Bash. Below are the steps to achieve this.
- Go to GitHub settings.
- Click on "Generate new token".
- Select the scopes you need. For Gists, you'll generally need the "gist" scope.
- Generate the token and save it securely.