Skip to content

Commit e10a076

Browse files
committed
download latest web when deploy
1 parent 74838da commit e10a076

File tree

2 files changed

+19
-7580
lines changed

2 files changed

+19
-7580
lines changed

.github/workflows/deploy.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,24 @@ jobs:
4343
with:
4444
node-version: 21
4545
cache: pnpm # 或 pnpm / yarn
46+
47+
- name: Clone EasyTier
48+
uses: GuillaumeFalourd/[email protected]
49+
with:
50+
depth: 1
51+
branch: 'main'
52+
owner: 'EasyTier'
53+
repository: 'EasyTier'
54+
- name: Build EasyTier Web
55+
run: |
56+
cd EasyTier
57+
pnpm -r install
58+
pnpm -r build
59+
cd ..
60+
mkdir -p public/web
61+
cp EasyTier/easytier-web/frontend/dist/index.html public/web/index.html
62+
rm -rf EasyTier
63+
4664
- name: Setup Pages
4765
uses: actions/configure-pages@v4
4866
- name: Install dependencies
@@ -54,6 +72,7 @@ jobs:
5472
with:
5573
path: .vitepress/dist
5674
- name: Upload OSS
75+
if: ${{ github.ref == 'refs/heads/main' }}
5776
uses: Menci/upload-to-oss@main
5877
with:
5978
access-key-id: ${{ secrets.ALIYUN_OSS_ACCESS_ID }}

0 commit comments

Comments
 (0)