Skip to content

Commit

Permalink
clean syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
wincowgerDEV committed Dec 13, 2024
1 parent 7cab7a8 commit 1df2e42
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# pkgdown.yaml
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
Expand All @@ -13,6 +14,7 @@ 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 @@ -21,22 +23,26 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v3

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

- 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: Build site
run: |
- name: Build site
run: |
pkgdown::build_site()
dir.create("docs/pkgdown", showWarnings = FALSE)
file.rename("docs/index.html", "docs/pkgdown/index.html")
system("cp -r docs/* docs/pkgdown/")
system("rm -rf docs/*")
shell: Rscript {0}
shell: Rscript {0}

- name: Deploy pkgdown to GitHub Pages 🚀
if: github.event_name != 'pull_request'
Expand Down

0 comments on commit 1df2e42

Please sign in to comment.