update program #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: main | |
permissions: | |
contents: write | |
name: Render & Deploy Site | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r-lib/actions/setup-r@v2 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- name: Install libPNG | |
run: sudo apt-get install -y libpng-dev | |
- name: Install dependencies | |
run: | | |
install.packages("rmarkdown") | |
install.packages("distill") | |
install.packages("fontawesome") | |
shell: Rscript {0} | |
- name: Render Site | |
run: Rscript -e 'rmarkdown::render_site(encoding = "UTF-8")' | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: "_site" # The folder the action should deploy. |