Skip to content

Commit

Permalink
Add website deploy GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
trey-stafford committed Apr 26, 2024
1 parent 65367ea commit 29ff23b
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/publish-quarto-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: "Publish website with GH Pages"

on:
push:
branches: ["main"]
workflow_dispatch:


# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write


# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true


jobs:
build:
runs-on: "ubuntu-latest"
permissions:
contents: "write"
steps:
- name: "Check out repository"
uses: "actions/checkout@v3"

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

- name: "Render"
uses: "quarto-dev/quarto-actions/render@v2"

- name: "Upload artifact"
uses: "actions/upload-pages-artifact@v3"
with:
path: "./_site"

# Deploy to GH Pages
deploy:
environment:
name: "github-pages"
url: "${{ steps.deployment.outputs.page_url }}"
runs-on: "ubuntu-latest"
needs: "build"
steps:
- name: "Deploy to GitHub Pages"
id: "deployment"
uses: "actions/deploy-pages@v4"

0 comments on commit 29ff23b

Please sign in to comment.