Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GHA that re-builds the pkgdown site after a PR is merged. #8

Open
cansavvy opened this issue Apr 26, 2023 · 1 comment
Open

Add GHA that re-builds the pkgdown site after a PR is merged. #8

cansavvy opened this issue Apr 26, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@cansavvy
Copy link
Contributor

That's it, that's the whole idea.

A very rough version of what this would look like:

on: 
  push:
     branches: main 

jobs:
     <an environment that has pkgdown> 
     run: |
       Rscript -e "pkgdown::build_site()"
       git add docs/*
       git commit 
       git push main 

For reference, there are some other GHA here that we can borrow from: https://github.com/jhudsl/OTTR_Template/tree/main/.github/workflows

@howardbaik howardbaik added the enhancement New feature or request label May 3, 2023
@howardbaik
Copy link
Contributor

Here is a chapter on GHA that I should read: https://r-pkgs.org/software-development-practices.html#sec-sw-dev-practices-gha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants