From 942c6a93ceeae4c8c52e56701b05ef4a45253e37 Mon Sep 17 00:00:00 2001 From: Suyi Date: Sat, 29 Mar 2025 02:36:04 +0800 Subject: [PATCH 1/2] docs: add v3 link --- site/config/config.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/site/config/config.ts b/site/config/config.ts index ba4c5d1350..af070a9d2d 100644 --- a/site/config/config.ts +++ b/site/config/config.ts @@ -39,6 +39,10 @@ export default defineConfig({ title: 'Plugins', path: 'https://github.com/search?q=topic%3Aegg-plugin&type=Repositories', }, + { + title: 'v3.x', + path: 'https://v3.eggjs.org', + }, ], 'zh-CN': [ null, @@ -46,13 +50,17 @@ export default defineConfig({ title: 'GitHub', path: 'https://github.com/eggjs/egg', }, + { + title: '发布日志', + path: 'https://github.com/eggjs/egg/releases', + }, { title: '插件列表', path: 'https://github.com/search?q=topic%3Aegg-plugin&type=Repositories', }, { - title: '发布日志', - path: 'https://github.com/eggjs/egg/releases', + title: 'v3.x', + path: 'https://v3.eggjs.org', }, ], }, From 1b5ee7158a6b2fc1a5045ba29640d5dbc9db654d Mon Sep 17 00:00:00 2001 From: Suyi Date: Sat, 29 Mar 2025 02:39:40 +0800 Subject: [PATCH 2/2] chore: remove vercel config --- .github/workflows/gh-pages.yml | 2 +- .github/workflows/vercel-preview.yml | 23 ----------------------- .github/workflows/vercel-production.yml | 21 --------------------- vercel.json | 8 -------- 4 files changed, 1 insertion(+), 53 deletions(-) delete mode 100644 .github/workflows/vercel-preview.yml delete mode 100644 .github/workflows/vercel-production.yml delete mode 100644 vercel.json diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 559003fa3a..224d3d48f7 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -25,7 +25,7 @@ jobs: run: npm i -g npminstall && npminstall - name: Build Documents - run: npm run site:build && cp vercel.json ./site/dist/vercel.json + run: npm run site:build - name: Deploy Documents uses: peaceiris/actions-gh-pages@v3 diff --git a/.github/workflows/vercel-preview.yml b/.github/workflows/vercel-preview.yml deleted file mode 100644 index 359c81b2c8..0000000000 --- a/.github/workflows/vercel-preview.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: GitHub Actions Vercel Preview Deployment -env: - VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} -on: - push: - branches-ignore: - - master - - gh-pages - -jobs: - Deploy-Preview: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Install Vercel CLI - run: npm install --global vercel@canary - - name: Pull Vercel Environment Information - run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} - - name: Build Project Artifacts - run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - - name: Deploy Project Artifacts to Vercel - run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} diff --git a/.github/workflows/vercel-production.yml b/.github/workflows/vercel-production.yml deleted file mode 100644 index 2e5535c21e..0000000000 --- a/.github/workflows/vercel-production.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: GitHub Actions Vercel Production Deployment -env: - VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} -on: - push: - branches: - - master -jobs: - Deploy-Production: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Install Vercel CLI - run: npm install --global vercel@canary - - name: Pull Vercel Environment Information - run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} - - name: Build Project Artifacts - run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} - - name: Deploy Project Artifacts to Vercel - run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} diff --git a/vercel.json b/vercel.json deleted file mode 100644 index a702e764e5..0000000000 --- a/vercel.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "git": { - "deploymentEnabled": false - }, - "github": { - "silent": true - } -}