Skip to content

Commit 2f10717

Browse files
committed
2 parents c12fce3 + 530ddb5 commit 2f10717

File tree

1 file changed

+14
-32
lines changed

1 file changed

+14
-32
lines changed

.github/workflows/deploy.yml

Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,63 +2,45 @@
22

33
name: Deploy Quarto Website
44

5-
# Run on pushes to the main branch and allow manual runs
65
on:
76
push:
8-
branches: [main] # Or master, depending on your default branch name
7+
branches: [main]
98
workflow_dispatch:
109

11-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1210
permissions:
13-
contents: read # Need read to check out the code
14-
pages: write # Need write to deploy to GitHub Pages
15-
id-token: write # Need for OIDC token authentication for deployment
11+
contents: read
12+
pages: write
13+
id-token: write
1614

17-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
18-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
1915
concurrency:
2016
group: "pages"
2117
cancel-in-progress: false
2218

2319
jobs:
2420
build-and-deploy:
25-
runs-on: ubuntu-latest # Use the latest Ubuntu runner
21+
runs-on: ubuntu-latest
2622

2723
steps:
2824
- name: Checkout repository
29-
uses: actions/checkout@v4 # Checks out your repository code
25+
uses: actions/checkout@v4
3026

3127
- name: Set up Quarto
32-
uses: quarto-dev/quarto-cli-action@v2
28+
uses: quarto-dev/quarto-actions/setup@v2
3329
with:
34-
# Optional: Specify a Quarto version, or leave blank for latest
35-
# version: 1.4.549
36-
version: latest
37-
38-
# Optional: Add steps here to install R, Python, or other dependencies
39-
# if your Quarto documents require code execution.
40-
# Example for Python:
41-
# - name: Set up Python
42-
# uses: actions/setup-python@v5
43-
# with:
44-
# python-version: '3.11' # Specify your Python version
45-
# - name: Install Python dependencies
46-
# run: pip install -r requirements.txt # If you have a requirements file
30+
version: 1.6.40 # Keep this specific version
4731

4832
- name: Render Quarto Website
49-
run: quarto render # Renders the website, output goes to docs/
33+
run: quarto render
5034

5135
- name: Setup Pages
52-
id: pages # Used for referencing outputs later
53-
uses: actions/configure-pages@v5 # Configures GitHub Pages options
36+
id: pages
37+
uses: actions/configure-pages@v5
5438

5539
- name: Upload artifact
56-
uses: actions/upload-pages-artifact@v3 # Uploads the rendered site content
40+
uses: actions/upload-pages-artifact@v3
5741
with:
58-
# Upload the entire contents of the output directory
59-
path: ./docs
42+
path: ./docs
6043

6144
- name: Deploy to GitHub Pages
6245
id: deployment
63-
uses: actions/deploy-pages@v4 # Deploys the artifact to GitHub Pages
64-
# This action automatically handles authentication using the GITHUB_TOKEN
46+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)