Skip to content

Commit 8c7a6fc

Browse files
authored
Add GitHub Actions workflow for Quarto publishing (#129)
Example that uses uv for Python package management.
1 parent e61e6c4 commit 8c7a6fc

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
workflow_dispatch:
3+
push:
4+
branches: main
5+
6+
name: Quarto Publish
7+
8+
jobs:
9+
build-deploy:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- name: Check out repository
15+
uses: actions/checkout@v4
16+
- name: Install uv
17+
uses: astral-sh/setup-uv@v6
18+
with:
19+
enable-cache: true
20+
- name: Install the project
21+
run: uv sync --locked --all-extras --dev
22+
- name: Add venv to PATH
23+
run: echo "$(pwd)/.venv/bin" >> $GITHUB_PATH
24+
- name: Set up Quarto
25+
uses: quarto-dev/quarto-actions/setup@v2
26+
- name: Render and Publish
27+
uses: quarto-dev/quarto-actions/publish@v2
28+
with:
29+
target: gh-pages
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)