Skip to content

Commit

Permalink
set up quarto publish
Browse files Browse the repository at this point in the history
  • Loading branch information
hrodmn committed Dec 17, 2024
1 parent e34c4df commit 1036a43
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/quarto-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,4 @@ cython_debug/
#.idea/

/.quarto/
/_site/

0 comments on commit 1036a43

Please sign in to comment.