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/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', }, ], }, 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 - } -}