Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 authored Oct 23, 2024
1 parent ec53d7b commit 3ae17fc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/preview-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,16 @@ jobs:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- name: bun run site
- name: build site
id: site
run: bun run site
run: bun run build-doc
env:
NODE_OPTIONS: --max_old_space_size=4096
- name: run e2e test
run: bun run test:site
- name: upload site artifact
uses: actions/upload-artifact@v4
with:
name: site
path: _site/
name: dist
path: dist/
retention-days: 5
# Upload PR id for next workflow use
- name: Save PR number
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
run_id: ${{ github.event.workflow_run.id }}
name: site
name: dist

- name: upload surge service
id: deploy
Expand All @@ -102,7 +102,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
[<img width="300" alt="Preview is ready" src="https://user-images.githubusercontent.com/5378891/72400743-23dbb200-3785-11ea-9d13-1a2d92743846.png">](https://preview-${{ steps.pr.outputs.id }}-ant-design.surge.sh)
[<img width="300" alt="Preview is ready" src="https://user-images.githubusercontent.com/5378891/72400743-23dbb200-3785-11ea-9d13-1a2d92743846.png">](https://preview-${{ steps.pr.outputs.id }}-ant-design-mobile.surge.sh)
<!-- AUTO_PREVIEW_HOOK -->
body-include: <!-- AUTO_PREVIEW_HOOK -->
number: ${{ steps.pr.outputs.id }}
Expand All @@ -113,7 +113,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
[<img width="300" alt="Preview failed" src="https://user-images.githubusercontent.com/5378891/75333447-1e63a280-58c1-11ea-975d-235367fd1522.png">](https://preview-${{ steps.pr.outputs.id }}-ant-design.surge.sh)
[<img width="300" alt="Preview failed" src="https://user-images.githubusercontent.com/5378891/75333447-1e63a280-58c1-11ea-975d-235367fd1522.png">](https://preview-${{ steps.pr.outputs.id }}-ant-design-mobile.surge.sh)
<!-- AUTO_PREVIEW_HOOK -->
body-include: <!-- AUTO_PREVIEW_HOOK -->
number: ${{ steps.pr.outputs.id }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
[<img width="500" alt="Prepare preview" src="https://user-images.githubusercontent.com/5378891/72351368-2c979e00-371b-11ea-9652-eb4e825d745e.gif">](https://preview-${{ github.event.number }}-ant-design.surge.sh)
[<img width="500" alt="Prepare preview" src="https://user-images.githubusercontent.com/5378891/72351368-2c979e00-371b-11ea-9652-eb4e825d745e.gif">](https://preview-${{ github.event.number }}-ant-design-mobile.surge.sh)
<!-- AUTO_PREVIEW_HOOK -->
body-include: <!-- AUTO_PREVIEW_HOOK -->

0 comments on commit 3ae17fc

Please sign in to comment.