Skip to content

Commit 37406af

Browse files
authored
fix: Switch to deploy from GitHub Actions (#5)
Fixes #4
1 parent 670e473 commit 37406af

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Deploy
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
18+
jobs:
19+
deploy:
20+
runs-on: ubuntu-latest
21+
environment:
22+
name: github-pages
23+
url: ${{ steps.deployment.outputs.page_url }}
24+
env:
25+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
26+
GH_TOKEN: ${{ github.token }}
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- uses: quarto-dev/quarto-actions/setup@v2
31+
with:
32+
version: pre-release
33+
tinytex: true
34+
35+
- name: Render Quarto Project
36+
shell: bash
37+
run: |
38+
quarto render example.qmd --to html --output index.html --output-dir _site
39+
40+
- uses: actions/configure-pages@v5
41+
42+
- uses: actions/upload-pages-artifact@v3
43+
with:
44+
path: '_site'
45+
46+
- name: Deploy to GitHub Pages
47+
id: deployment
48+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)