Skip to content

Commit 75b7a76

Browse files
committed
Deploy docs to GitHub Pages
1 parent ebf631f commit 75b7a76

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/docs.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,17 @@ name: docs
22

33
on:
44
push:
5-
pull_request:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
616

717
jobs:
818
build:
@@ -20,3 +30,17 @@ jobs:
2030
run: pnpm install --frozen-lockfile
2131
- name: Build
2232
run: pnpm run docs:build
33+
- name: Upload Pages artifact
34+
uses: actions/upload-pages-artifact@v3
35+
with:
36+
path: docs/.vuepress/dist
37+
38+
deploy:
39+
needs: build
40+
runs-on: ubuntu-latest
41+
environment:
42+
name: github-pages
43+
url: ${{ steps.deployment.outputs.page_url }}
44+
steps:
45+
- id: deployment
46+
uses: actions/deploy-pages@v4

docs/.vuepress/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export default {
44
lang: "zh-CN",
55
title: "Epoch",
66
description: "Epoch Actor Runtime 设计与文档",
7+
base: "/epoch/",
78
theme: defaultTheme({
89
navbar: [
910
{ text: "文档", link: "/" },

0 commit comments

Comments
 (0)