From dc4bcdc9ce9643db8706790f945247388fd257fe Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 24 Nov 2024 13:07:31 +0800 Subject: [PATCH 1/2] chore: Update site-deploy.yml --- .github/workflows/site-deploy.yml | 32 +++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/site-deploy.yml b/.github/workflows/site-deploy.yml index f7bee401..8878ce3d 100644 --- a/.github/workflows/site-deploy.yml +++ b/.github/workflows/site-deploy.yml @@ -27,11 +27,11 @@ jobs: env: NODE_OPTIONS: --max_old_space_size=4096 - # - name: build dist and bundle analyzer report - # run: bun run dist - # env: - # ANALYZER: 1 - # NODE_OPTIONS: --max_old_space_size=4096 + - name: build dist and bundle analyzer report + run: bun run dist + env: + ANALYZER: 1 + NODE_OPTIONS: --max_old_space_size=4096 - name: Get version id: publish-version @@ -53,15 +53,15 @@ jobs: source-repo: 'git@github.com:ant-design/x.git' destination-repo: 'git@gitee.com:ant-design/antd-x.git' - # - name: Deploy to Surge (with TAG) - # run: | - # export DEPLOY_DOMAIN=ant-design-x-${{ steps.publish-version.outputs.VERSION }}.surge.sh - # cp report.html ./_site - # bunx surge --project ./_site --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }} + - name: Deploy to Surge (with TAG) + run: | + export DEPLOY_DOMAIN=ant-design-x-${{ steps.publish-version.outputs.VERSION }}.surge.sh + cp report.html ./_site + bunx surge --project ./_site --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }} - # - name: Create Commit Comment - # uses: peter-evans/commit-comment@v3 - # with: - # body: | - # - Documentation site for this release: https://ant-design-x-${{ steps.publish-version.outputs.VERSION }}.surge.sh - # - Webpack bundle analyzer report page: https://ant-design-x-${{ steps.publish-version.outputs.VERSION }}.surge.sh/report.html + - name: Create Commit Comment + uses: peter-evans/commit-comment@v3 + with: + body: | + - Documentation site for this release: https://ant-design-x-${{ steps.publish-version.outputs.VERSION }}.surge.sh + - Webpack bundle analyzer report page: https://ant-design-x-${{ steps.publish-version.outputs.VERSION }}.surge.sh/report.html From f69fe8e3206aa96861fa766b215e3cb5d2461ffa Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 24 Nov 2024 13:10:06 +0800 Subject: [PATCH 2/2] Update .github/workflows/site-deploy.yml --- .github/workflows/site-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/site-deploy.yml b/.github/workflows/site-deploy.yml index 8878ce3d..83e472bb 100644 --- a/.github/workflows/site-deploy.yml +++ b/.github/workflows/site-deploy.yml @@ -28,7 +28,7 @@ jobs: NODE_OPTIONS: --max_old_space_size=4096 - name: build dist and bundle analyzer report - run: bun run dist + run: bun run compile env: ANALYZER: 1 NODE_OPTIONS: --max_old_space_size=4096