Skip to content

add quarto publish action #1

add quarto publish action

add quarto publish action #1

on:
push:
branches:
- main
name: Render and Publish
permissions:
contents: write
pages: write
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install UV
uses: astral-sh/setup-uv@v3
with:
version: "0.5.*"
enable-cache: true
- name: Set up Python
run: uv python install && uv sync
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Render and publish to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "Quarto GHA Workflow Runner"
uv run quarto publish gh-pages . --no-browser