You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.3 KiB

name: Ant Design
trigger: none
pr:
autoCancel: true
branches:
exclude:
- gh-pages
pool:
vmImage: 'ubuntu-latest'
stages:
- stage: site
jobs:
- job: Build_Site
steps:
- checkout: self
displayName: 'Checkout'
clean: true
fetchDepth: 1
- task: NodeTool@0
displayName: 'Install Node.js'
inputs:
versionSpec: '12.13.1'
- script: npm install
displayName: 'Install modules'
- script: |
node ./scripts/azure-github-comment.js "[![Prepare preview](https://user-images.githubusercontent.com/5378891/72351368-2c979e00-371b-11ea-9652-eb4e825d745e.gif)](https://dev.azure.com/ant-design/ant-design/_build/results?buildId=$(Build.BuildId))"
displayName: 'Comment on github'
- script: npm run site
displayName: 'Build sites'
- script: ls -al _site/
displayName: 'List build'
- script: |
export DEPLOY_DOMAIN=https://preview-${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER}-ant-design.surge.sh
echo "Deploy to $DEPLOY_DOMAIN"
npx surge --project ./_site --domain $DEPLOY_DOMAIN
displayName: 'Deploy Site'
- script: |
export DEPLOY_DOMAIN=https://preview-${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER}-ant-design.surge.sh
node ./scripts/azure-github-comment.js "[<img width="306" src="https://user-images.githubusercontent.com/5378891/72400743-23dbb200-3785-11ea-9d13-1a2d92743846.png">]($DEPLOY_DOMAIN)"
displayName: 'Update comment on github'
docs: Site with single paging (#21360) * patch route * use data for promise * rename Article file * Article in TS * clean up * use collect * adjust css * card it * listing * res * hiring * add footer * english it * rm others * fix lint * fix navigation * add dropdown button * Header with TS * split input &amp; logo * navigation out * use flex * flex everything * stretch * hide search when narrow * init category * global rules * more cat * pages * level 2 width * level 3 * level 4 * skip before ready * clean up * unqiue shadow variable * update eslintignore * update ignore * fix ssr * fix location param * replace images * shake more * fix top of navigation * remove home * reorder nav &amp; adjust padding style * narrow res style * Update research-form-page.zh-CN.md (#21426) Co-authored-by: Golevka &lt;huangsamfisher@163.com&gt; * rm skip * narrow merge in * reset p style * update svg * fix lint * update ignore * update lint ignore * Update research-result-page.zh-CN.md (#21432) Co-authored-by: mihaideyu &lt;zxy1010414746@163.com&gt; * Update research-result-page.zh-CN.md * Update research-workbench.zh-CN.md (#21438) Co-authored-by: yingxirz &lt;inseeing@gmail.com&gt; * Update research-workbench.zh-CN.md * Update research-list-page.zh-CN.md (#21441) Co-authored-by: yingxirz &lt;inseeing@gmail.com&gt; * Update research-list-page.zh-CN.md * padding use 40px * add responsive of ref * fix p margin * Update research-workbench.zh-CN.md * Update buttons.md (#21456) Co-authored-by: yingxirz &lt;inseeing@gmail.com&gt; * Update resources.en-US.md (#21457) * Update research-navigation.zh-CN.md (#21453) * Update research-navigation.zh-CN.md * Update research-navigation.zh-CN.md * Update research-navigation.zh-CN.md * Update research-empty.zh-CN.md (#21451) * Update research-empty.zh-CN.md * Update research-empty.zh-CN.md * Update research-empty.zh-CN.md * Update research-empty.zh-CN.md Co-authored-by: 二货机器人 &lt;smith3816@gmail.com&gt; * Update research-exception-page.zh-CN.md (#21452) * Update research-exception-page.zh-CN.md * Update research-exception-page.zh-CN.md * Update research-message-and-feedback.zh-CN.md (#21463) * Update research-message-and-feedback.zh-CN.md (#21467) * Update research-message-and-feedback.zh-CN.md * Update research-message-and-feedback.zh-CN.md * Update research-message-and-feedback.zh-CN.md * Update research-message-and-feedback.zh-CN.md * replace background * fix lines margin * home padding * patch minTilda doc * Update resources.zh-CN.md (#21503) * clean up * Update research-workbench.zh-CN.md (#21512) Co-authored-by: yingxirz &lt;inseeing@gmail.com&gt; * Update research-overview.zh-CN.md (#21513) Co-authored-by: yingxirz &lt;inseeing@gmail.com&gt; * Update research-result-page.zh-CN.md (#21514) Co-authored-by: mihaideyu &lt;zxy1010414746@163.com&gt; * Update research-list-page.zh-CN.md (#21515) Co-authored-by: yingxirz &lt;inseeing@gmail.com&gt; * fix doc * Update research-message-and-feedback.zh-CN.md (#21516) * adjust home nav width * Update research-message-and-feedback.zh-CN.md (#21535) * Update research-form-page.zh-CN.md (#21554) Co-authored-by: Golevka &lt;huangsamfisher@163.com&gt; * patch file * clean up * update shadow.zh-CN update shadow.zh-CN * add shadow table * Update visual.zh-CN.md (#21577) Co-authored-by: shuwenliu0116 &lt;33922479+shuwenliu0116@users.noreply.github.com&gt; * Update docs/spec/shadow.zh-CN.md Co-Authored-By: 偏右 &lt;afc163@gmail.com&gt; * Update docs/spec/shadow.zh-CN.md Co-Authored-By: 偏右 &lt;afc163@gmail.com&gt; * Update docs/spec/shadow.zh-CN.md Co-Authored-By: 偏右 &lt;afc163@gmail.com&gt; * Update docs/spec/shadow.zh-CN.md Co-Authored-By: 偏右 &lt;afc163@gmail.com&gt; * Update docs/spec/shadow.zh-CN.md Co-Authored-By: 偏右 &lt;afc163@gmail.com&gt; * patch docs * fix doc * rm page suffix * fix style * mobile it * Update resources.en-US.md (#21561) * chart res * add qr code * adjust qr * Update visual.zh-CN.md (#21603) Co-authored-by: shuwenliu0116 &lt;33922479+shuwenliu0116@users.noreply.github.com&gt; * fix site qr * mobile height of it * book update * 3.x site link * isMobile is new cnotext * Update research-form.zh-CN.md (#21604) Co-authored-by: Golevka &lt;huangsamfisher@163.com&gt; * adjust form doc * mobile use link * adjust order * flush * fix ts * Update research-navigation.zh-CN.md (#21606) * Update research-navigation.zh-CN.md (#21609) * rm useless lines * add mobile icon * Update research-exception.zh-CN.md (#21612) * Update research-empty.zh-CN.md (#21610) * Update research-workbench.zh-CN.md * Update visual.zh-CN.md * adjust mobile icon * Update research-message-and-feedback.zh-CN.md (#21613) * Update research-list.zh-CN.md (#21617) Co-authored-by: yingxirz &lt;inseeing@gmail.com&gt; * Update research-workbench.zh-CN.md (#21618) Co-authored-by: yingxirz &lt;inseeing@gmail.com&gt; * Update visual.zh-CN.md (#21619) Co-authored-by: shuwenliu0116 &lt;33922479+shuwenliu0116@users.noreply.github.com&gt; * Update research-result.zh-CN.md (#21620) Co-authored-by: mihaideyu &lt;zxy1010414746@163.com&gt; * Update research-form.zh-CN.md (#21615) * Update research-message-and-feedback.zh-CN.md (#21616) * Update research-list.zh-CN.md (#21621) Co-authored-by: yingxirz &lt;inseeing@gmail.com&gt; * Update research-result.zh-CN.md (#21624) Co-authored-by: mihaideyu &lt;zxy1010414746@163.com&gt; * update ref color * update zip file * fix mobile icon * rm skip dark * fix cat * update zip link * update zip link Co-authored-by: Golevka &lt;huangsamfisher@163.com&gt; Co-authored-by: mihaideyu &lt;zxy1010414746@163.com&gt; Co-authored-by: yingxirz &lt;inseeing@gmail.com&gt; Co-authored-by: 偏右 &lt;afc163@gmail.com&gt; Co-authored-by: myeunhyuk &lt;39618466+myeunhyuk@users.noreply.github.com&gt; Co-authored-by: minTilda &lt;31951290+minTilda@users.noreply.github.com&gt; Co-authored-by: ziyuan-174774 &lt;61226089+ziyuan-174774@users.noreply.github.com&gt; Co-authored-by: 竹尔 &lt;54707870+AntDesigners@users.noreply.github.com&gt; Co-authored-by: shuwenliu0116 &lt;33922479+shuwenliu0116@users.noreply.github.com&gt;
5 years ago
- job: Build_Site_Failed
dependsOn: Build_Site
condition: failed()
steps:
- checkout: self
displayName: 'Checkout'
clean: true
fetchDepth: 1
- task: NodeTool@0
displayName: 'Install Node.js'
inputs:
versionSpec: '12.13.1'
- script: npm install
displayName: 'Install modules'
- script: |
node ./scripts/azure-github-comment.js "[<img width="534" src="https://user-images.githubusercontent.com/5378891/75333447-1e63a280-58c1-11ea-975d-235367fd1522.png">](https://dev.azure.com/ant-design/ant-design/_build/results?buildId=$(Build.BuildId))"
displayName: 'Comment on github'