Skip to content

Commit d7da273

Browse files
committed
Action
1 parent 27a94bf commit d7da273

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+51
-1091
lines changed

.github/workflows/deploy.yml

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

public/404.html

Lines changed: 0 additions & 15 deletions
This file was deleted.

public/en/guide/docs/assistant.html

Lines changed: 0 additions & 122 deletions
This file was deleted.

public/en/guide/docs/assistant_tool.html

Lines changed: 0 additions & 257 deletions
This file was deleted.

public/en/guide/docs/index.html

Lines changed: 0 additions & 15 deletions
This file was deleted.

public/en/guide/start/changelog.html

Lines changed: 0 additions & 21 deletions
This file was deleted.

public/en/guide/start/index.html

Lines changed: 0 additions & 26 deletions
This file was deleted.

public/en/guide/start/more.html

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)