Skip to content

Commit

Permalink
[feat](ci) remove github page
Browse files Browse the repository at this point in the history
  • Loading branch information
miyuesc committed Mar 15, 2024
1 parent 1037381 commit a36bb60
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,12 @@ jobs:
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Setup Pages
uses: actions/configure-pages@v3

- name: Install dependencies
run: pnpm install

- name: Build with VitePress
run: pnpm run book:build

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: book/online-book/.vitepress/dist

- name: Deploy 🚀
uses: cross-the-world/scp-pipeline@master
env:
Expand All @@ -75,11 +67,3 @@ jobs:
connect_timeout: 10s
local: './book/online-book/.vitepress/dist/*'
remote: /web-site/main

deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
1 change: 1 addition & 0 deletions book/online-book/.vitepress/config/zh-cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const zhCnConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
nav: [
{ text: '主页', link: '/' },
{ text: '开始学习', link: '/00-introduction/010-about' },
{ text: '翻译进度:第四章第三节', link: '' },
],
sidebar: [
{
Expand Down

0 comments on commit a36bb60

Please sign in to comment.