Skip to content

Commit

Permalink
Update pkgdown.yml bug fix attempt #2
Browse files Browse the repository at this point in the history
  • Loading branch information
lamonica-d authored Nov 15, 2024
1 parent 68e1105 commit 5159d3f
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions .github/workflows/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@ on:
branches: [main, master]
pull_request:
branches: [main, master]
release:
types: [published]
workflow_dispatch:

name: pkgdown

jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
Expand All @@ -23,36 +19,33 @@ jobs:
contents: write

steps:
- uses: actions/checkout@master

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

- uses: actions/checkout@v4

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

- name: Install dependencies
run: |
options(pkgType = "binary")
options(install.packages.check.source = "no")
install.packages(c("remotes", "rcmdcheck", "covr", "pkgdown"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

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

- name: Install package
run: R CMD INSTALL .

- name: Pkgdown
# Build the package site locally
run: Rscript -e 'pkgdown::build_site()'

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

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
clean: false
branch: gh-pages
folder: docs


0 comments on commit 5159d3f

Please sign in to comment.