Skip to content

Commit 60c42e0

Browse files
author
lukwol
committed
Deploy to GitHub Pages
1 parent 7524a84 commit 60c42e0

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Deploy VitePress site to Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
13+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v6
24+
with:
25+
fetch-depth: 0
26+
- name: Setup Bun
27+
uses: oven-sh/setup-bun@v2
28+
- name: Setup Pages
29+
uses: actions/configure-pages@v6
30+
- name: Install dependencies
31+
run: bun install --frozen-lockfile
32+
- name: Build with VitePress
33+
run: bun run docs:build
34+
- name: Upload artifact
35+
uses: actions/upload-pages-artifact@v5
36+
with:
37+
path: docs/.vitepress/dist
38+
39+
deploy:
40+
environment:
41+
name: github-pages
42+
url: ${{ steps.deployment.outputs.page_url }}
43+
needs: build
44+
runs-on: ubuntu-latest
45+
name: Deploy
46+
steps:
47+
- name: Deploy to GitHub Pages
48+
id: deployment
49+
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)