Skip to content

Commit 78f42c0

Browse files
committed
GitHub Pages 部署
1 parent e4ead0a commit 78f42c0

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/renovate.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": ["github>mancuoj/renovate-config"],
3+
"automerge": true,
4+
"ignoreTests": true
5+
}

.github/workflows/deploy.yaml

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

0 commit comments

Comments
 (0)