Skip to content

Commit

Permalink
update github actions for pkgdown
Browse files Browse the repository at this point in the history
  • Loading branch information
merliseclyde committed Sep 13, 2024
1 parent 6a80fca commit bc85408
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ on:
types: [published]
workflow_dispatch:

name: pkgdown
name: pkgdown.yml

permissions: read-all

jobs:
pkgdown:
Expand All @@ -19,8 +21,10 @@ jobs:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

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

Expand All @@ -32,7 +36,9 @@ jobs:
with:
extra-packages: any::pkgdown, local::.
needs: website


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

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

0 comments on commit bc85408

Please sign in to comment.