Skip to content

Commit

Permalink
Configure action for deploying quarto blog
Browse files Browse the repository at this point in the history
  • Loading branch information
crisbour committed Nov 2, 2024
1 parent b458a2d commit 6e90a82
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 36 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/blank.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Quarto Publish
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions: {contents: write}
steps:
- uses: actions/checkout@v4
# Quarto actions find out more here: https://github.com/quarto-dev/quarto-actions?tab=readme-ov-file
- uses: quarto-dev/quarto-actions/setup@v2
with:
version: latest
- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6e90a82

Please sign in to comment.