Skip to content

Merge pull request #13 from PovertyAction/dependabot/github_actions/e… #18

Merge pull request #13 from PovertyAction/dependabot/github_actions/e…

Merge pull request #13 from PovertyAction/dependabot/github_actions/e… #18

Workflow file for this run

on:
workflow_dispatch:
push:
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@v4
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 }}