Преглед изворни кода

✅ tests: fix ts lint error

chenshuai2144 пре 6 година
родитељ
комит
08718ea570

+ 0 - 13
.github/workflows/GitHub_Pages_Deploy.yml

@@ -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 }}

+ 10 - 0
.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 }}

+ 1 - 1
src/components/Authorized/Authorized.tsx

@@ -21,7 +21,7 @@ const Authorized: React.FunctionComponent<AuthorizedProps> = ({
   authority,
   noMatch = (
     <Result
-      status="403"
+      status={403}
       title="403"
       subTitle="Sorry, you are not authorized to access this page."
     />

+ 1 - 1
src/layouts/BasicLayout.tsx

@@ -25,7 +25,7 @@ import logo from '../assets/logo.svg';
 
 const noMatch = (
   <Result
-    status="403"
+    status={403}
     title="403"
     subTitle="Sorry, you are not authorized to access this page."
     extra={

+ 1 - 1
src/pages/404.tsx

@@ -7,7 +7,7 @@ import { router } from 'umi';
 
 const NoFoundPage: React.FC<{}> = () => (
   <Result
-    status="404"
+    status={404}
     title="404"
     subTitle="Sorry, the page you visited does not exist."
     extra={