Closed adaex closed 5 days ago
This pull request introduces a new GitHub Actions workflow for generating and deploying a preview of the site when a pull request is made.
此 PR 引入了一个新的 GitHub Actions 工作流程,用于在创建 PR 自动部署网站的预览,可以更方便的检查文档站和组件效果。
.github/workflows/pr-preview.yml
sites/home/inject/inject.config.js: Updated the `$siteDomain
sites/home/inject/inject.config.js
variable to use the ARCO_SITE_DOMAIN environment variable if it is set, otherwise defaulting to 'arco.design'.
ARCO_SITE_DOMAIN
sites/pc/inject/inject.config.js: Updated the `$siteDomain
sites/pc/inject/inject.config.js
✨ PR Preview Link: https://preview-303-arco-design-mobile.surge.sh
This pull request introduces a new GitHub Actions workflow for generating and deploying a preview of the site when a pull request is made.
此 PR 引入了一个新的 GitHub Actions 工作流程,用于在创建 PR 自动部署网站的预览,可以更方便的检查文档站和组件效果。
GitHub Actions Workflow:
.github/workflows/pr-preview.yml
: Added a new workflow named "PR Preview" that builds and deploys a preview of the site for pull requests to Surge and comments the preview link on the pull request.Site Configuration:
sites/home/inject/inject.config.js
: Updated the `$siteDomainvariable to use the
ARCO_SITE_DOMAIN
environment variable if it is set, otherwise defaulting to 'arco.design'.sites/pc/inject/inject.config.js
: Updated the `$siteDomainvariable to use the
ARCO_SITE_DOMAIN
environment variable if it is set, otherwise defaulting to 'arco.design'.