Skip to content

Commit

Permalink
run quarto publish with uv
Browse files Browse the repository at this point in the history
  • Loading branch information
hrodmn committed Nov 18, 2024
1 parent 03c2795 commit 0e5e215
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/quarto-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,22 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4

# - name: Setup Python
# uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v3

- 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: Publish to GitHub Pages (and render)
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
- name: Render and publish to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "${{ inputs.GITHUB_EMAIL }}"
git config --global user.name "${{ inputs.GITHUB_USERNAME }}"
uv run quarto publish gh-pages . --no-browser

0 comments on commit 0e5e215

Please sign in to comment.