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 missing dependency to pkgdown and make the job run #338

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading