Skip to content

Set up gh actions

Set up gh actions #5

Workflow file for this run

on:
workflow_dispatch:
push:
branches: main
pull_request:
branches: main
name: Publish Quarto Site
#docs: https://github.com/quarto-dev/quarto-actions/blob/main/examples/quarto-publish-example.yml
#docs: https://github.com/marketplace/actions/python-setup-rye
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
python-version: ["3.12.3"]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Set up Rye
id: setup-rye
uses: eifinger/setup-rye@v3
with:
enable-cache: false
- name: Pin python version ${{ matrix.python-version }}
if: steps.setup-rye.outputs.cache-hit != 'true'
run: rye pin ${{ matrix.python-version }}
- name: Install dependencies
if: steps.setup-rye.outputs.cache-hit != 'true'
run: |
rye sync
# From https://github.com/r-lib/actions/tree/v2-branch/setup-r
# - name: Setup R
# uses: r-lib/actions/setup-r@v2
- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}