Skip to content

Commit

Permalink
Simplify pkgdown example
Browse files Browse the repository at this point in the history
For #468.
  • Loading branch information
gaborcsardi committed Jan 6, 2022
1 parent 0ddf38b commit ebeab6d
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions examples/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@ jobs:
extra-packages: any::pkgdown, local::.
needs: website

- name: Deploy package
if: github.event_name != 'pull_request'
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "[email protected]"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
- name: Build site
run: Rscript -e 'pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)'

- name: Build site without deploying
if: github.event_name == 'pull_request'
run: |
Rscript -e 'pkgdown::build_site(preview = FALSE, install = FALSE)'
- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs

0 comments on commit ebeab6d

Please sign in to comment.