Commit 5cc9488bd67bd95a9b9ce4cb64785485c285ea5d

Authored by Vben
1 parent 5eac9b23

workflow: add ftp-schedule workflow

.github/workflows/deploy.yml
... ... @@ -54,7 +54,7 @@ jobs:
54 54 REMOTE_DIR: /srv/www/vben-admin
55 55 ARGS: --delete --verbose --parallel=80
56 56  
57   - push-to-gh-page:
  57 + push-to-gh-pages:
58 58 if: "contains(github.event.head_commit.message, '[deploy]')"
59 59 runs-on: ubuntu-latest
60 60 steps:
... ... @@ -94,8 +94,8 @@ jobs:
94 94 chmod 600 ~/.ssh/id_rsa
95 95 ssh-keyscan github.com > ~/.ssh/known_hosts
96 96 chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
97   - git config --global user.email "vbenadmin@163.com"
98   - git config --global user.name "vbenAdmin"
  97 + git config --locale user.email "vbenadmin@163.com"
  98 + git config --locale user.name "vbenAdmin"
99 99  
100 100 - name: Delete gh-pages branch
101 101 run: |
... ...
.github/workflows/ftp-schedule.yml 0 → 100644
  1 +name: schedule-push-to-ftp
  2 +
  3 +# Timed deployment project
  4 +on:
  5 + push:
  6 + schedule:
  7 + - cron: '0 15 * * *'
  8 +
  9 +jobs:
  10 + push-to-ftp:
  11 + runs-on: ubuntu-latest
  12 + steps:
  13 + - name: Checkout
  14 + uses: actions/checkout@v2
  15 +
  16 + - name: Sed Config Base
  17 + shell: bash
  18 + run: |
  19 + sed -i 's#VITE_PUBLIC_PATH\s*=.*#VITE_PUBLIC_PATH = /next/#g' ./.env.production
  20 + sed -i "s#VITE_BUILD_COMPRESS\s*=.*#VITE_BUILD_COMPRESS = 'gzip'#g" ./.env.production
  21 + cat ./.env.production
  22 +
  23 + - name: use Node.js 14
  24 + uses: actions/setup-node@v2.1.2
  25 + with:
  26 + node-version: '14.x'
  27 +
  28 + - name: Get yarn cache
  29 + id: yarn-cache
  30 + run: echo "::set-output name=dir::$(yarn cache dir)"
  31 +
  32 + - name: Cache dependencies
  33 + uses: actions/cache@v2
  34 + with:
  35 + path: ${{ steps.yarn-cache.outputs.dir }}
  36 + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
  37 + restore-keys: |
  38 + ${{ runner.os }}-yarn-
  39 +
  40 + - name: Build
  41 + run: |
  42 + yarn install
  43 + yarn run build
  44 +
  45 + - name: Deploy
  46 + uses: SamKirkland/FTP-Deploy-Action@2.0.0
  47 + env:
  48 + FTP_SERVER: ${{ secrets.FTP_SERVER }}
  49 + FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
  50 + FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
  51 + METHOD: sftp
  52 + PORT: ${{ secrets.FTP_PORT }}
  53 + LOCAL_DIR: dist
  54 + REMOTE_DIR: /srv/www/vben-admin
  55 + ARGS: --delete --verbose --parallel=80
... ...
.vscode/i18n-ally-reviews.yml deleted 100644 → 0
1   -# Review comments generated by i18n-ally. Please commit this file.
2   -
3   -reviews:
4   - sys.login.autoLogin:
5   - description: '1'
package.json
... ... @@ -66,7 +66,7 @@
66 66 "@typescript-eslint/parser": "^4.15.2",
67 67 "@vitejs/plugin-legacy": "^1.3.1",
68 68 "@vitejs/plugin-vue": "^1.1.4",
69   - "@vitejs/plugin-vue-jsx": "^1.1.0",
  69 + "@vitejs/plugin-vue-jsx": "^1.1.1",
70 70 "@vue/compiler-sfc": "^3.0.5",
71 71 "autoprefixer": "^10.2.4",
72 72 "commitizen": "^4.2.3",
... ... @@ -93,7 +93,7 @@
93 93 "stylelint-config-standard": "^20.0.0",
94 94 "stylelint-order": "^4.1.0",
95 95 "ts-node": "^9.1.1",
96   - "typescript": "^4.1.5",
  96 + "typescript": "^4.2.2",
97 97 "vite": "2.0.2",
98 98 "vite-plugin-compression": "^0.2.2",
99 99 "vite-plugin-html": "^2.0.2",
... ... @@ -103,7 +103,7 @@
103 103 "vite-plugin-pwa": "^0.5.3",
104 104 "vite-plugin-style-import": "^0.7.4",
105 105 "vite-plugin-theme": "^0.4.8",
106   - "vite-plugin-windicss": "0.4.9",
  106 + "vite-plugin-windicss": "0.4.12",
107 107 "vue-eslint-parser": "^7.5.0",
108 108 "yargs": "^16.2.0"
109 109 },
... ...
yarn.lock
... ... @@ -1574,10 +1574,10 @@
1574 1574 regenerator-runtime "^0.13.7"
1575 1575 systemjs "^6.8.3"
1576 1576  
1577   -"@vitejs/plugin-vue-jsx@^1.1.0":
1578   - version "1.1.0"
1579   - resolved "https://registry.npmjs.org/@vitejs/plugin-vue-jsx/-/plugin-vue-jsx-1.1.0.tgz#9bd45834db9e8d29a569e330917142c073dab347"
1580   - integrity sha512-7fpB9rdhWZ7DSdcK/w2sEuSaeOiSyhwu/2ojwl8qz1pshWEPQj9F2g9TaZtEBz298nOKBM0hUOCcKKRUO8Ga8A==
  1577 +"@vitejs/plugin-vue-jsx@^1.1.1":
  1578 + version "1.1.1"
  1579 + resolved "https://registry.npmjs.org/@vitejs/plugin-vue-jsx/-/plugin-vue-jsx-1.1.1.tgz#f9e1bb89591f8529218974d6e55d205964784bc9"
  1580 + integrity sha512-xVpDaXmBsSMkUrYm1qhCrXqlzWuadwbYCPp0pm5N9g6pECTtd5+KgGN7SkIyDER+1cl+0vhkXdZAHu1MaS11gw==
1581 1581 dependencies:
1582 1582 "@babel/core" "^7.12.10"
1583 1583 "@babel/plugin-syntax-import-meta" "^7.10.4"
... ... @@ -1708,10 +1708,10 @@
1708 1708 dependencies:
1709 1709 vue-demi latest
1710 1710  
1711   -"@windicss/plugin-utils@0.4.9":
1712   - version "0.4.9"
1713   - resolved "https://registry.npmjs.org/@windicss/plugin-utils/-/plugin-utils-0.4.9.tgz#d2f61423c82421cf5507374120691ea39127d060"
1714   - integrity sha512-dD1Fagdtunr5om8SQMoJyxsFRL1Gh4JqEWlCIWxduMddHbY+S+4Atwifehy6T/2dCoyaGxlLk5yHbeNEdw40eA==
  1711 +"@windicss/plugin-utils@0.4.12":
  1712 + version "0.4.12"
  1713 + resolved "https://registry.npmjs.org/@windicss/plugin-utils/-/plugin-utils-0.4.12.tgz#b75f218ec11e2970e6ccb7db556cf9930c1cb9ec"
  1714 + integrity sha512-5nZm/qHfnBBYWdtNZmU6IpXO5i/ckIiv+PhyeBOAGl5EXfly7h84YJ4NrkixusbhWMBwUdPi9Bs5m9rOR3oMpg==
1715 1715 dependencies:
1716 1716 esbuild "^0.8.50"
1717 1717 esbuild-register "^2.0.0"
... ... @@ -8600,10 +8600,10 @@ typedarray-to-buffer@^3.1.5:
8600 8600 dependencies:
8601 8601 is-typedarray "^1.0.0"
8602 8602  
8603   -typescript@^4.1.5:
8604   - version "4.1.5"
8605   - resolved "https://registry.npmjs.org/typescript/-/typescript-4.1.5.tgz#123a3b214aaff3be32926f0d8f1f6e704eb89a72"
8606   - integrity sha512-6OSu9PTIzmn9TCDiovULTnET6BgXtDYL4Gg4szY+cGsc3JP1dQL8qvE8kShTRx1NIw4Q9IBHlwODjkjWEtMUyA==
  8603 +typescript@^4.2.2:
  8604 + version "4.2.2"
  8605 + resolved "https://registry.npmjs.org/typescript/-/typescript-4.2.2.tgz#1450f020618f872db0ea17317d16d8da8ddb8c4c"
  8606 + integrity sha512-tbb+NVrLfnsJy3M59lsDgrzWIflR4d4TIUjz+heUnHZwdF7YsrMTKoRERiIvI2lvBG95dfpLxB21WZhys1bgaQ==
8607 8607  
8608 8608 uglify-js@^3.1.4:
8609 8609 version "3.12.5"
... ... @@ -8953,12 +8953,12 @@ vite-plugin-theme@^0.4.8:
8953 8953 es-module-lexer "^0.3.26"
8954 8954 tinycolor2 "^1.4.2"
8955 8955  
8956   -vite-plugin-windicss@0.4.9:
8957   - version "0.4.9"
8958   - resolved "https://registry.npmjs.org/vite-plugin-windicss/-/vite-plugin-windicss-0.4.9.tgz#af7fdfb5b23487e562fa7f7f78c6ea42633df719"
8959   - integrity sha512-Q5S2fnVyOcAA12ERHLbXwCzr6NWQmCOluUVtlnKW29liMv7rN3k21bokyLlL+S7o23MLtK5Dbi54FuNqMQGibA==
  8956 +vite-plugin-windicss@0.4.12:
  8957 + version "0.4.12"
  8958 + resolved "https://registry.npmjs.org/vite-plugin-windicss/-/vite-plugin-windicss-0.4.12.tgz#6a967daaaea084afea4352a019c316ff03eea099"
  8959 + integrity sha512-IXYgvJ58jMF1/lOejZGeOOmNotI+L+W9vMvdJBOykphsk7X+qc8nZfWKW0VvmX2JcI5Ry+QuQMM4JX0xVKnWYQ==
8960 8960 dependencies:
8961   - "@windicss/plugin-utils" "0.4.9"
  8961 + "@windicss/plugin-utils" "0.4.12"
8962 8962 windicss "^2.2.0"
8963 8963  
8964 8964 vite@2.0.2:
... ...