diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 79e7f77..d17b8a4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -43,6 +43,24 @@ jobs: with: node-version: 21 cache: pnpm # 或 pnpm / yarn + + - name: Clone EasyTier + uses: GuillaumeFalourd/clone-github-repo-action@v2.3 + with: + depth: 1 + branch: 'main' + owner: 'EasyTier' + repository: 'EasyTier' + - name: Build EasyTier Web + run: | + cd EasyTier + pnpm -r install + pnpm -r build + cd .. + mkdir -p public/web + cp EasyTier/easytier-web/frontend/dist/index.html public/web/index.html + rm -rf EasyTier + - name: Setup Pages uses: actions/configure-pages@v4 - name: Install dependencies @@ -54,6 +72,7 @@ jobs: with: path: .vitepress/dist - name: Upload OSS + if: ${{ github.ref == 'refs/heads/main' }} uses: Menci/upload-to-oss@main with: access-key-id: ${{ secrets.ALIYUN_OSS_ACCESS_ID }} diff --git a/public/web/index.html b/public/web/index.html deleted file mode 100644 index 2cf14ed..0000000 --- a/public/web/index.html +++ /dev/null @@ -1,7580 +0,0 @@ - - -
- - - -