Skip to content

Commit 62ae630

Browse files
authored
ci: add workflow to deploy site to GitHub Pages (#4)
1 parent 8f792e8 commit 62ae630

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy VitePress Site to Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
jobs:
14+
deploy:
15+
environment:
16+
name: github-pages
17+
url: ${{ steps.deployment.outputs.page_url }}
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Setup Bun
26+
uses: oven-sh/setup-bun@v1
27+
28+
- name: Install dependencies
29+
run: bun install
30+
31+
- name: Build the site
32+
run: bun run docs:build
33+
34+
- name: Setup Pages
35+
uses: actions/configure-pages@v5
36+
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: docs/.vitepress/dist
41+
42+
- name: Deploy to GitHub Pages
43+
id: deployment
44+
uses: actions/deploy-pages@v4

docs/.vitepress/config.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { fr } from "./fr.mts";
44

55
export default defineConfig({
66
title: "PipePipe Wiki",
7+
base: "/Docs-PipePipe/",
78

89
themeConfig: {
910
socialLinks: [

0 commit comments

Comments
 (0)