Skip to content

Commit cda54be

Browse files
authored
Update deploy.yml
1 parent 92f83fa commit cda54be

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,30 @@ on:
99

1010
jobs:
1111
build-deploy:
12+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
1213
runs-on: ubuntu-latest
1314
steps:
1415
- name: Check out repository
1516
uses: actions/checkout@v4
1617

17-
# This action sets up R and caches packages based on your DESCRIPTION file
18+
# THIS IS THE MISSING STEP: Installs R itself
19+
- name: Set up R
20+
uses: r-lib/actions/setup-r@v2
21+
with:
22+
r-version: '4.5.0' # Or a specific version like '4.3.1'
23+
24+
# Now this step will work because Rscript is available
1825
- name: Set up R and cache dependencies
1926
uses: r-lib/actions/setup-r-dependencies@v2
2027
with:
21-
packages: any::local # The 'any::local' tells it to look for the DESCRIPTION file
28+
packages: any::local
2229

23-
# Your script to rebuild the RDS files in the 'tables' directory
2430
- name: Run data build script
2531
run: Rscript build_data_ehm_site.R
2632

27-
# The magic step: render and deploy the site
2833
- name: Render and Deploy
2934
uses: quarto-dev/quarto-actions/publish@v2
3035
with:
31-
target: gh-pages # Deploys to the gh-pages branch
36+
target: gh-pages
3237
env:
3338
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)