Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jennifer (Jenny) Bryan <[email protected]>
  • Loading branch information
hadley and jennybc authored Nov 14, 2023
1 parent 4e81f2e commit 1937298
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vignettes/how-to-update-released-site.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Otherwise, read more below.

### Setup

First, make sure you're in the main branch, and you have the latest version:
First, make sure you're in the `main` branch, and you have the latest version:

```{r}
gert::git_branch_checkout("main")
Expand All @@ -36,7 +36,7 @@ Next figure out the released version that we're updating:
ver <- desc::desc_get_version()[1, 1:3]
```

We'll use this to create the branch that you'll work in:
We'll use this to create and checkout the branch that you'll work in:

```{r}
gert::git_branch_create(paste0("pkgdown-v", ver), paste0("v", ver))
Expand Down Expand Up @@ -64,7 +64,7 @@ files <- c(
glue::glue("git checkout v{ver} -- {files}")
```

If you update the description, you'll also need undo the change to the `Version`:
If you backport `DESCRIPTION`, you'll also need undo the change to the `Version`:

```{r}
desc::desc_set_version(ver)
Expand All @@ -87,7 +87,7 @@ usethis:::git_push_first()

Then trigger the pkgdown workflow:

1. Going to your package's GHA page, e.g. with `usethis::browse_github_actions())`.
1. Go to your package's GHA page, e.g. with `usethis::browse_github_actions())`.
2. Select the pkgdown workflow.
3. Click *Run workflow* and select the branch you just pushed.

Expand Down

0 comments on commit 1937298

Please sign in to comment.