Skip to content

Commit 5c864d0

Browse files
committed
chore(ci): deploy to pages
1 parent c9a351e commit 5c864d0

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/workflows/deploy.yml

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

.vitepress/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { defineConfig, HeadConfig, type DefaultTheme } from 'vitepress';
22

33
export default defineConfig({
44
lang: 'en-US',
5+
base: '/0x68656c70/',
56
head: headers(),
67
title: '0x68656c70',
78
description: 'help - Notes about technical stuff I wish I had before.',

0 commit comments

Comments
 (0)