From 57c4aad73b79ae65119179750dbe2d2a97f2751c Mon Sep 17 00:00:00 2001 From: chenshuai2144 Date: Sun, 1 Mar 2020 17:55:46 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Deploy:=20=20add=20deploy=20ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 14 -------------- .github/workflows/deploy.yml | 22 ++++++++++++++++++++++ config/config.ts | 8 ++++++++ 3 files changed, 30 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c4fca40..635fe115 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,17 +25,3 @@ jobs: PROGRESS: none NODE_ENV: test NODE_OPTIONS: --max_old_space_size=4096 - build-and-deploy: - runs-on: ubuntu-latest - if: github.event == 'push' && github.ref == 'master' - steps: - - name: Checkout - uses: actions/checkout@master - - - name: Build and Deploy - uses: JamesIves/github-pages-deploy-action@master - env: - GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }} - BRANCH: gh-pages - FOLDER: 'dist/' - BUILD_SCRIPT: npm install && npm run deploy diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..b35617df --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,22 @@ +name: Deploy CI + +on: [push] + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + if: github.event == 'push' && github.ref == 'master' + steps: + - name: Checkout + uses: actions/checkout@master + - run: yarn + - run: yarn run lint + - run: yarn run tsc + - name: Build and Deploy + uses: JamesIves/github-pages-deploy-action@master + env: + ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: site + GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }} + BRANCH: gh-pages + FOLDER: 'dist/' + BUILD_SCRIPT: yarn && npm run deploy diff --git a/config/config.ts b/config/config.ts index 3f70e9df..8ae887c7 100644 --- a/config/config.ts +++ b/config/config.ts @@ -69,6 +69,14 @@ if (isAntDesignProPreview) { code: 'UA-72788897-6', }, ]); + + plugins.push([ + 'umi-plugin-pro', + { + serverUrl: 'https://ant-design-pro.netlify.com', + }, + ]); + plugins.push(['umi-plugin-antd-theme', themePluginConfig]); }