Skip to content

Commit

Permalink
Add missing dependency to pkgdown and make the job run (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
nealrichardson authored Jul 9, 2024
1 parent 4b34845 commit 5a44dcb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ name: pkgdown

jobs:
pkgdown:
if: ${{ github.event_name == 'push' || startsWith(github.head_ref, 'pkgdown/') }}
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GHA_PAT }}
Expand All @@ -27,7 +26,7 @@ jobs:

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

- name: Install package
Expand All @@ -43,10 +42,12 @@ jobs:
git config --local user.name "GitHub Actions"
- name: Deploy package
if: ${{ github.event_name == 'push' || startsWith(github.head_ref, 'pkgdown/') }}
run: pkgdown::deploy_to_branch(new_process = FALSE)
shell: Rscript {0}

- name: Deploy to Netlify
if: ${{ github.event_name == 'push' || startsWith(github.head_ref, 'pkgdown/') }}
id: netlify-deploy
uses: nwtgck/actions-netlify@v1.1
# NETLIFY_AUTH_TOKEN added in the repo's secrets
Expand Down

0 comments on commit 5a44dcb

Please sign in to comment.