Skip to content

Commit

Permalink
Add GH action for Netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasilge committed Aug 21, 2024
1 parent b6ec965 commit de2933e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
workflow_dispatch:
push:
branches: main

name: Quarto Publish

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

- name: Set current year env var for Posit theme
run: echo 'CURRENT_YEAR=$(date "+%Y")' >> $GITHUB_ENV

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

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

0 comments on commit de2933e

Please sign in to comment.