Skip to content

Commit 02bd087

Browse files
committed
Add deployment workflow
Signed-off-by: Kaur Palang <[email protected]>
1 parent ebad4b1 commit 02bd087

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
push:
2+
branches:
3+
- main
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
11+
- uses: oven-sh/setup-bun@v2
12+
13+
- name: Build site
14+
id: build
15+
run: bun run docs:build
16+
17+
- name: Upload static files as artifact
18+
id: deployment
19+
uses: actions/upload-pages-artifact@v4
20+
with:
21+
path: .vitepress/dist/
22+
23+
# Deployment job
24+
deploy:
25+
environment:
26+
name: github-pages
27+
url: ${{ steps.deployment.outputs.page_url }}
28+
runs-on: ubuntu-latest
29+
needs: build
30+
steps:
31+
- name: Deploy to GitHub Pages
32+
id: deployment
33+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)