Skip to content

Workflow file for this run

on:
push:
branches:
- main
name: 🚀 Build and Deploy
jobs:
build:
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup R
uses: r-lib/actions/setup-r@v2
- name: Setup Pandoc
uses: r-lib/actions/setup-pandoc@v2
- name: Install rmarkdown and blogdown
run: Rscript -e 'install.packages(c("rmarkdown","blogdown", "remotes"))'
- name: Install hugo
run: Rscript -e 'blogdown::install_hugo(version="0.139.4")' # Update to the latest version
- name: Build site with blogdown
run: Rscript -e "blogdown::build_site()"
- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs