Skip to content

Commit 50ffd74

Browse files
committed
enable build
1 parent 1181da9 commit 50ffd74

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
on:
2+
push:
3+
branches: [main, master]
4+
release:
5+
types: [published]
6+
workflow_dispatch: {}
7+
8+
name: demo-website
9+
10+
jobs:
11+
demo-website:
12+
runs-on: ubuntu-latest
13+
# Only restrict concurrency for non-PR jobs
14+
concurrency:
15+
group: quarto-publish-${{ github.event_name != 'pull_request' || github.run_id }}
16+
permissions:
17+
contents: read
18+
pages: write
19+
id-token: write
20+
steps:
21+
22+
- name: "Check out repository"
23+
uses: actions/checkout@v5
24+
with:
25+
submodules: recursive
26+
27+
- name: "Set up Quarto"
28+
uses: quarto-dev/quarto-actions/setup@v2
29+
with:
30+
version: "pre-release"
31+
32+
# Render the Quarto file
33+
- name: "Render working directory"
34+
uses: quarto-dev/quarto-actions/render@v2
35+
with:
36+
path: "docs"
37+
38+
39+
# Upload a tar file that will work with GitHub Pages
40+
# Make sure to set a retention day to avoid running into a cap
41+
# This artifact shouldn't be required after deployment onto pages was a success.
42+
- name: Upload Pages artifact
43+
uses: actions/upload-pages-artifact@v3
44+
with:
45+
retention-days: 1
46+
path: 'docs/_site'
47+
48+
49+
# Use an Action deploy to push the artifact onto GitHub Pages
50+
# This requires the `Action` tab being structured to allow for deployment
51+
# instead of using `docs/` or the `gh-pages` branch of the repository
52+
- name: Deploy to GitHub Pages
53+
id: deployment
54+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)