Skip to content

Commit

Permalink
Merge pull request #106 from ropensci/update-ghactions
Browse files Browse the repository at this point in the history
Hopefully fix pkgdown github action
  • Loading branch information
marcosci authored May 6, 2024
2 parents e14ad90 + c7aa066 commit 29d9708
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/Deploy-pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,27 @@ jobs:
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
RandomFields=?ignore
any::pkgdown
any::XML
needs: website

- name: Deploy package
- name: Install additional package dependencies
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
repos.orig <- getOption('repos')
options(repos = c(PE = "https://predictiveecology.r-universe.dev")) ## TODO: use ropensci universe
pak::pkg_install("RandomFields")
options(repos = repos.orig)
shell: Rscript {0}

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

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
clean: false
branch: gh-pages
folder: docs

0 comments on commit 29d9708

Please sign in to comment.