Skip to content

Commit

Permalink
Install for pkgdown if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasWallrich committed Nov 9, 2024
1 parent 6b89cef commit 106a104
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/document-and-deploy-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,10 @@ jobs:
rsconnect::deployApp(appName = 'CiteSource', appDir = './inst/shiny-app/CiteSource', forceUpdate = TRUE)"
- name: Create pkgdown
if: github.ref == 'refs/heads/main'
run: |
R -e "
install.packages('pkgdown');
if (!require(CiteSource))
if (!require(CiteSource)) remotes::install_github('ESHackathon/CiteSource', force = TRUE);
pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)"
- name: Deploy to GitHub pages 🚀
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/document-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ jobs:
rsconnect::deployApp(appName = 'CiteSource', appDir = './inst/shiny-app/CiteSource', forceUpdate = TRUE)"
- name: Create pkgdown
if: github.ref == 'refs/heads/main'
run: |
R -e "
install.packages('pkgdown');
if (!require(CiteSource)) remotes::install_github('ESHackathon/CiteSource', force = TRUE);
pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)"
- name: Deploy to GitHub pages 🚀
Expand Down

0 comments on commit 106a104

Please sign in to comment.