Commit 237287b4 authored by liziwl's avatar liziwl
Browse files

删除预发配置

parent 7cccdfc2
Loading
Loading
Loading
Loading
+0 −39
Original line number Diff line number Diff line
@@ -127,42 +127,3 @@ jobs:
        remote_host: ${{ secrets.HOST_CAN }}
        remote_user: ${{ secrets.USERNAME_SZX }}
        remote_key: ${{ secrets.SSH_KEY_SZX }}

    - name: setup aliyun oss
      uses: manyuanrong/setup-ossutil@master
      with:
        endpoint: oss-cn-shenzhen.aliyuncs.com
        access-key-id: ${{ secrets.OSS_KEY_ID }}
        access-key-secret: ${{ secrets.OSS_KEY_SECRET }}

    - name: cp files to aliyun
      run: |
        ossutil rm -rf "oss://${bucket}/*"
        ossutil cp -rf --job 20 docs/.vuepress/dist/ "oss://${bucket}/"
      env:
        bucket: "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 }}
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ Online manual for SUSTecher.

### 版本说明
* 正式线上版本(master 分支构建):https://sustech.online/
* 预发测试版本(perf 分支构建):https://perf.sustech.online/
* 预发测试版本:使用 netlify 的 PR preview 功能

## LICENSE