Skip to content

Update build_adodown_site.yaml #29

Update build_adodown_site.yaml

Update build_adodown_site.yaml #29

name: Build Site
on:
push:
branches: [main, master]
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Install R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: devtools, here
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: 1.0.37
- name: Install adodownr
run: |
install.packages("devtools")
devtools::install_github("lsms-worldbank/adodownr")
shell: Rscript {0}
- name: Build site
run: adodownr::build_site(pkg_dir = here::here(), site_dir = here::here())
shell: Rscript {0}
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
clean: false
folder: docs
branch: gh-pages