Commit 438e7e00 authored by Sparkf's avatar Sparkf 🏙️
Browse files
parents ed5f4cc5 7dc756a0
Loading
Loading
Loading
Loading
+27 −2
Original line number Diff line number Diff line
@@ -46,8 +46,8 @@ jobs:
        name: 'sustech-online-build'
        path: './docs/.vuepress/dist/'

  deploy:
    name: Deploy site
  deploy-on-master:
    name: Deploy site (master)
    runs-on: "ubuntu-latest"
    needs: build
    if: always() && github.repository_owner == 'SUSTech-CRA' && github.ref == 'refs/heads/master'
@@ -98,3 +98,28 @@ jobs:
      run: |
        ossutil rm -rf oss://perf-sustech-online/*
        ossutil cp -rf docs/.vuepress/dist/ oss://perf-sustech-online/

  deploy-on-perf:
    name: Deploy site (perf)
    runs-on: "ubuntu-latest"
    needs: build
    if: always() && github.repository_owner == 'SUSTech-CRA' && github.ref == 'refs/heads/perf'
    steps:
    - uses: actions/download-artifact@v2
      with:
        name: sustech-online-build
        path: "./docs/.vuepress/dist/"

    - name: Display structure of downloaded files
      run: ls -R
      working-directory: "./docs/.vuepress/dist/"

    - name: copy file to server PVG
      uses: burnett01/rsync-deployments@5.0
      with:
        switches: -avzr --delete
        path: "./docs/.vuepress/dist/"
        remote_path: ${{ secrets.HTML_PATH_PERF }}
        remote_host: ${{ secrets.HOST }}
        remote_user: ${{ secrets.USERNAME }}
        remote_key: ${{ secrets.SSH_KEY }}
+3 −0
Original line number Diff line number Diff line
@@ -27,3 +27,6 @@ Online manual for SUSTecher.

* 使用 Markdown 和 raw HTML / JavaScript 语言

### 版本说明
* 正式线上版本(master 分支构建):https://sustech.online/
* 预发测试版本(perf 分支构建):https://perf.sustech.online/
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
    "docs:build": "vuepress build docs"
  },
  "dependencies": {
    "axios": "^0.21.1",
    "axios": "^0.21.2",
    "maplibre-gl": "^1.15.2",
    "postcss-loader": "^6.1.1"
  }
+9 −9
Original line number Diff line number Diff line
@@ -2045,12 +2045,12 @@ autoprefixer@^10.3.1:
    normalize-range "^0.1.2"
    postcss-value-parser "^4.1.0"

axios@^0.21.1:
  version "0.21.1"
  resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.1.tgz#22563481962f4d6bde9a76d516ef0e5d3c09b2b8"
  integrity sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==
axios@^0.21.2:
  version "0.21.2"
  resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.2.tgz#21297d5084b2aeeb422f5d38e7be4fbb82239017"
  integrity sha512-87otirqUw3e8CzHTMO+/9kh/FSgXt/eVDvipijwDtEuwbkySWZ9SBm6VEubmJ/kLKEoLQV/POhxXFb66bfekfg==
  dependencies:
    follow-redirects "^1.10.0"
    follow-redirects "^1.14.0"

babel-plugin-dynamic-import-node@^2.3.3:
  version "2.3.3"
@@ -2987,10 +2987,10 @@ finalhandler@~1.1.2:
    statuses "~1.5.0"
    unpipe "~1.0.0"

follow-redirects@^1.0.0, follow-redirects@^1.10.0:
  version "1.14.2"
  resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.2.tgz#cecb825047c00f5e66b142f90fed4f515dec789b"
  integrity sha512-yLR6WaE2lbF0x4K2qE2p9PEXKLDjUjnR/xmjS3wHAYxtlsI9MLLBJUZirAHKzUZDGLxje7w/cXR49WOUo4rbsA==
follow-redirects@^1.0.0, follow-redirects@^1.14.0:
  version "1.14.3"
  resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.3.tgz#6ada78118d8d24caee595595accdc0ac6abd022e"
  integrity sha512-3MkHxknWMUtb23apkgz/83fDoe+y+qr0TdgacGIA7bew+QLBo3vdgEN2xEsuXNivpFy4CyDhBBZnNZOtalmenw==

forwarded@0.2.0:
  version "0.2.0"