feat:更新baseUrl
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
name: Deploy to Gitee Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build with VitePress
|
||||
run: npm run build
|
||||
|
||||
- name: Deploy to Gitee Pages
|
||||
uses: yanglbme/gitee-pages-action@main
|
||||
with:
|
||||
gitee-username: ${{ secrets.GITEE_USERNAME }}
|
||||
gitee-password: ${{ secrets.GITEE_PASSWORD }}
|
||||
gitee-repo: ${{ secrets.GITEE_REPO }}
|
||||
branch: master
|
||||
directory: docs/.vitepress/dist
|
||||
@@ -5,7 +5,7 @@ export default defineConfig({
|
||||
lang: 'zh-CN',
|
||||
title: "Cxx0822",
|
||||
description: "Cxx0822 Blog",
|
||||
base: process.env.NODE_ENV === 'production' ? '/blog-press/' : '/',
|
||||
base: '/blog-press/',
|
||||
themeConfig: {
|
||||
// https://vitepress.dev/reference/default-theme-config
|
||||
nav: [
|
||||
|
||||
Reference in New Issue
Block a user