Skip to content
name: Build and Deploy Quarto Site
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: revamp-organization
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Render
run: |
quarto render
- name: Publish
run: |
git config user.name github-actions
git config user.email [email protected]
git checkout gh-pages
cp -r docs/* .
git add .
git commit -a -m "update pages" || echo "nothing to commit"
git push https://${GITHUB_PAT}:${GITHUB_PAT}@github.com/${GITHUB_REPOSITORY}