Skip to content

Update deploy.yml

Update deploy.yml #4

Workflow file for this run

# .github/workflows/deploy.yml
name: Deploy Quarto Website
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build-deploy:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
# --- ADD THIS NEW STEP FOR DEBUGGING ---
- name: List all files in the repository
run: ls -R
# -----------------------------------------
# THIS IS THE MISSING STEP: Installs R itself
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: '4.5.0' # Or a specific version like '4.3.1'
# Now this step will work because Rscript is available
- name: Set up R and cache dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: any::local
- name: Run data build script
run: Rscript build_data_ehm_site.R
- name: Render and Deploy
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}