Skip to content

Commit

Permalink
ci: 👷 add reusable workflow for publishing website (#5)
Browse files Browse the repository at this point in the history
## Description

These changes add a workflow that build the website and publish it to
Netlify.


## Reviewer Focus

This PR needs a quick review.
  • Loading branch information
lwjohnst86 authored Sep 16, 2024
1 parent 2236053 commit d537cef
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and deploy website

on:
workflow_call:
secrets:
netlify-token:
required: true

jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

# add software dependencies here

- name: Render and publish to Netlify
uses: quarto-dev/quarto-actions/publish@v2
with:
target: netlify
NETLIFY_AUTH_TOKEN: ${{ secrets.netlify-token }}

0 comments on commit d537cef

Please sign in to comment.