Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update site-deploy.yml #228

Merged
merged 2 commits into from
Nov 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions .github/workflows/site-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
afc163 marked this conversation as resolved.
Show resolved Hide resolved
env:
ANALYZER: 1
NODE_OPTIONS: --max_old_space_size=4096

- name: Get version
id: publish-version
Expand All @@ -53,15 +53,15 @@ jobs:
source-repo: '[email protected]:ant-design/x.git'
destination-repo: '[email protected]: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