Skip to content

Commit

Permalink
Setup GHA to publish on push to main
Browse files Browse the repository at this point in the history
  • Loading branch information
EllaKaye committed Nov 24, 2023
1 parent 41fc772 commit a7871f1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
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
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v4

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

- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 4 additions & 1 deletion _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ project:
- fonts
preview:
port: 4321


execute:
freeze: auto

website:
title: "Advent of Code"
#site-url: https://github.com
Expand Down

0 comments on commit a7871f1

Please sign in to comment.