From 08718ea570a68f947d411f6bee432f4049454f80 Mon Sep 17 00:00:00 2001 From: chenshuai2144 Date: Wed, 26 Feb 2020 21:37:45 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20tests:=20fix=20ts=20lint=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/GitHub_Pages_Deploy.yml | 13 ------------- .github/workflows/ci.yml | 10 ++++++++++ src/components/Authorized/Authorized.tsx | 2 +- src/layouts/BasicLayout.tsx | 2 +- src/pages/404.tsx | 2 +- 5 files changed, 13 insertions(+), 16 deletions(-) delete mode 100644 .github/workflows/GitHub_Pages_Deploy.yml diff --git a/.github/workflows/GitHub_Pages_Deploy.yml b/.github/workflows/GitHub_Pages_Deploy.yml deleted file mode 100644 index e858743e..00000000 --- a/.github/workflows/GitHub_Pages_Deploy.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Deploy to GitHub Pages -on: [push] -jobs: - Deploy: - name: Deploy to GitHub Pages - runs-on: ubuntu-latest - if: success() && github.event == 'push' && github.ref == 'master' - steps: - - name: publish - uses: maxheld83/ghpages@v0.2.1 - env: - BUILD_DIR: 'dist/' - GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 635fe115..fb3e51eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,3 +25,13 @@ jobs: PROGRESS: none NODE_ENV: test NODE_OPTIONS: --max_old_space_size=4096 + deploy: + name: Deploy to GitHub Pages + runs-on: ubuntu-latest + if: success() && github.event == 'push' && github.ref == 'master' + steps: + - name: publish + uses: maxheld83/ghpages@v0.2.1 + env: + BUILD_DIR: 'dist/' + GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }} diff --git a/src/components/Authorized/Authorized.tsx b/src/components/Authorized/Authorized.tsx index d91b7b55..36af4c63 100644 --- a/src/components/Authorized/Authorized.tsx +++ b/src/components/Authorized/Authorized.tsx @@ -21,7 +21,7 @@ const Authorized: React.FunctionComponent = ({ authority, noMatch = ( diff --git a/src/layouts/BasicLayout.tsx b/src/layouts/BasicLayout.tsx index 4cf97620..f82e2afb 100644 --- a/src/layouts/BasicLayout.tsx +++ b/src/layouts/BasicLayout.tsx @@ -25,7 +25,7 @@ import logo from '../assets/logo.svg'; const noMatch = ( = () => (