hadley/r-pkgs

Add explanation about Github workflow permissions in chapter 20

matanhakim opened this issue · 2 comments

Section 20.2 declares:

After successful execution of use_pkgdown_github_pages(), you should be able to visit your new site at the URL displayed in the output above.

Nevertheless, there is one more step needed for the website to be properly published.
One should go to its Github repo, and then:

  1. Settings
  2. Actions
  3. General
  4. Scroll down to "Workflow permissions"
  5. Check "Read and write permissions"

Without this, my Github Actions kept failing.
Only after looking my error online I found this solution, and now it works.
I think this should be added to save valuable time for first-time package developers like myself.

Thanks again for the book!
It facilitated my first package, rtlr - you're welcome to check it out!

Apparently this is a somewhat new phenomenon, since February perhaps? So, yeah we'll do something about it here and in usethis, where it's already being tracked. r-lib/usethis#1813

Glad the book has been useful! Thanks for the thoughtful issues and PRs.

This got analyzed and solved in r-lib/actions#719. I don't think there's a need to do anything in the book.