You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because I don't have the right permissions, I can't access the settings page of this repo to add secrets and such. However, I managed to set it up on a repo on my GitHub account here.
I followed this tutorial (also linked in Calvin's comment), but the YAML config file is slightly different.
Something the tutorial also didn't mention was the default for GITHUB_TOKEN in repos is read-only. So, the workflow won't work. You can change to write permissions in Settings > Actions > General. For more granular permissions, you can configure them in the YAML config file, as detailed in GitHub's docs.
Extra security measures should probably be taken because we don't want to get hacked 😶
It would be nice if we could deploy PRs to preview what new pages/changes look like online.
There is a beta gh action for this but it does not support previews from forks for security reasons: https://github.com/marketplace/actions/deploy-pr-preview
Someone made another action based on the above for docusaurus but it has been archived: https://github.com/marketplace/actions/build-deploy-to-github-pages-and-deploy-pr-preview
There is also a non-foss service that offers a free tier for oss projects: https://docs.pushpreview.com/installation/docusaurus
The text was updated successfully, but these errors were encountered: