Skip to content

Commit

Permalink
update action
Browse files Browse the repository at this point in the history
  • Loading branch information
tuner committed Jan 14, 2025
1 parent 484ba1a commit e0fd97b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build-and-deploy-vignette.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Cache apt dependencies
uses: actions/cache@v3
with:
path: /var/lib/apt/lists
key: ${{ runner.os }}-apt
restore-keys: |
${{ runner.os }}-apt
- name: Set up R
uses: r-lib/actions/setup-r@v2

Expand All @@ -26,16 +34,16 @@ jobs:
- name: Install dependencies
run: |
install.packages("devtools")
devtools::install_deps(dependencies = TRUE)
Rscript -e 'install.packages("devtools")'
Rscript -e 'devtools::install_deps(dependencies = TRUE)'
- name: Install the jellyfisher package
run: |
R CMD INSTALL .
- name: Build vignette
run: |
R -e 'rmarkdown::render("vignettes/introduction.Rmd", output_file = "docs/introduction.html")'
Rscript -e 'rmarkdown::render("vignettes/introduction.Rmd", output_file = "docs/introduction.html")'
echo '<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Jellyfisher Vignettes</title></head><body><h1>Jellyfisher Vignettes</h1><ul><li><a href="docs/introduction.html">Introduction</a></li></ul></body></html>' > docs/index.html
deploy:
Expand Down

0 comments on commit e0fd97b

Please sign in to comment.