Skip to content

Commit

Permalink
ci: setup gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ahasverus committed Dec 1, 2024
1 parent c486efd commit 3c0d2ce
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/quarto-render.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on:
workflow_dispatch:
push:
branches: main

name: Quarto Render and Publish

jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Set up R
uses: r-lib/actions/setup-r@v2

- name: Install R packages
uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: 2
packages: |
any::rmarkdown
- name: Render qmd files
run: |
mkdir build
quarto render index.qmd --output-dir build
- name: Deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build
clean: true

0 comments on commit 3c0d2ce

Please sign in to comment.