Skip to content

Commit

Permalink
Removes custom repo stuff and updates pkgdown action
Browse files Browse the repository at this point in the history
  • Loading branch information
eliocamp committed Apr 19, 2024
1 parent ccd4d28 commit 7531ef5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/pkgdown.yaml
Expand Up @@ -22,7 +22,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

Expand All @@ -32,20 +32,16 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::., any::pkgbuild, any::miniCRAN
extra-packages: any::pkgdown, local::.
needs: website

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Create CRAN repo
run: source("add_repo.R")
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4.4.1
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
clean: false
branch: gh-pages
Expand Down
5 changes: 4 additions & 1 deletion README.Rmd
Expand Up @@ -38,7 +38,10 @@ install.packages("metR")
Or the development version with:

```{r gh-installation, eval = FALSE}
install.packages("metR", repos = c("https://eliocamp.github.io/metR", getOption("repos")))
if (!requireNamespace("pak", quietly = TRUE)) {
install.packages("pak")
}
pak::pak("metR")
```

If you need to read netcdf files, you might need to install the netcdf and udunits2 libraries. On Ubuntu and it's derivatives this can be done by typing
Expand Down

0 comments on commit 7531ef5

Please sign in to comment.