orchidhq / Orchid

Build and deploy beautiful documentation sites that grow with you
https://orchid.run
GNU General Public License v3.0
512 stars 53 forks source link

GitHub Actions deploy friendlyness #391

Closed DanySK closed 2 years ago

DanySK commented 3 years ago

Currently, Orchid defaults to the githubToken environment variable to acquire the GitHub token for deployment. This plays a bit badly with the default actions settings, though. I suggest that Orchid searches for a token in the following order:

  1. existing githubToken environment variable (backwards compatible)
  2. githubToken project property (which is automatically mirrored by the environment variable ORG_GRADLE_PROJECT_githubToken)
  3. GITHUB_TOKEN environment variable