From 0e5e2153605078a4306090f0233482b6016a6a5c Mon Sep 17 00:00:00 2001 From: hrodmn Date: Mon, 18 Nov 2024 14:52:07 -0600 Subject: [PATCH] run quarto publish with uv --- .github/workflows/quarto-publish.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/quarto-publish.yml b/.github/workflows/quarto-publish.yml index 3307024..bb357dc 100644 --- a/.github/workflows/quarto-publish.yml +++ b/.github/workflows/quarto-publish.yml @@ -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