Compare commits
No commits in common. "32d5845b83fb46e82585674cf6025a96bc28371b" and "f45d1d2a0b7563b5d0be7063231ebd731b824060" have entirely different histories.
32d5845b83
...
f45d1d2a0b
@ -43,4 +43,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
command: pages deploy ./src/.vuepress/dist --project-name=jingji-spbook --branch=main
|
command: pages deploy ./src/.vuepress/dist --project-name=jingji-spbook-vue --branch=main
|
@ -1,42 +0,0 @@
|
|||||||
name: test-doc
|
|
||||||
run-name: Testing doc — ${{ gitea.run_id }}
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
pull_request:
|
|
||||||
types: [opened]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-and-deploy:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
deployments: write
|
|
||||||
steps:
|
|
||||||
- name: 🚚 Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v4
|
|
||||||
name: 🔧Install pnpm
|
|
||||||
with:
|
|
||||||
run_install: false
|
|
||||||
|
|
||||||
- name: 🔧Install Node.js
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 20
|
|
||||||
cache: 'pnpm'
|
|
||||||
|
|
||||||
- name: 🔧Install dependencies
|
|
||||||
run: pnpm install
|
|
||||||
|
|
||||||
- name: 🔴Build doc
|
|
||||||
run: pnpm run docs:build
|
|
||||||
|
|
||||||
- name: 🚀 Deploy to Cloudflare Pages
|
|
||||||
uses: cloudflare/wrangler-action@v3
|
|
||||||
with:
|
|
||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
||||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
|
||||||
command: pages deploy ./src/.vuepress/dist --project-name=jingji-spbook
|
|
@ -1,8 +1,13 @@
|
|||||||
|
import { viteBundler } from '@vuepress/bundler-vite'
|
||||||
import { defineUserConfig } from "vuepress"
|
import { defineUserConfig } from "vuepress"
|
||||||
import theme from "./theme.js"
|
import theme from "./theme.js"
|
||||||
|
|
||||||
export default defineUserConfig({
|
export default defineUserConfig({
|
||||||
base: "/",
|
bundler: viteBundler({
|
||||||
|
viteOptions: {},
|
||||||
|
vuePluginOptions: {},
|
||||||
|
}),
|
||||||
|
base: "/jingji/sp/",
|
||||||
|
|
||||||
lang: "zh-CN",
|
lang: "zh-CN",
|
||||||
title: "荆棘鸟文学社",
|
title: "荆棘鸟文学社",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user