diff --git a/.github/workflows/quarto-publish.yml b/.github/workflows/quarto-publish.yml new file mode 100644 index 0000000..527739d --- /dev/null +++ b/.github/workflows/quarto-publish.yml @@ -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 "quarto-github-actions-publish@example.com" + git config --global user.name "Quarto GHA Workflow Runner" + uv run quarto publish gh-pages . --no-browser + diff --git a/.gitignore b/.gitignore index 849ece6..9e859b6 100644 --- a/.gitignore +++ b/.gitignore @@ -162,3 +162,4 @@ cython_debug/ #.idea/ /.quarto/ +/_site/