diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8748de93..71f48195 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,51 +6,6 @@ on: jobs: - cdn: - name: CDN - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: bahmutov/npm-install@v1 - - name: Set vue cli env - shell: bash - run: | - echo -e "\ - VUE_APP_PUBLIC_PATH=/d2-admin/preview/\ - " > .env.preview.local - cat .env.preview.local | while read line - do - echo $line - done - - name: Build - run: yarn build:preview --report - - name: Setup qshell - uses: foxundermoon/setup-qshell@v1 - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' - with: - qshell-version: '2.4.0' - - name: Test qshell - run: qshell version - - name: Login - run: qshell account ${{ secrets.AK }} ${{ secrets.SK }} GITHUB_ACTION - - name: CDN upload - run: | - qshell qupload2 \ - --src-dir=$GITHUB_WORKSPACE/dist \ - --bucket=d2-cdn \ - --key-prefix=${GITHUB_REPOSITORY//*\//}/preview/ \ - --overwrite=true \ - --check-exists=true \ - --check-hash=true \ - --check-size=true \ - --rescan-local=true \ - --thread-count=32 - - name: CDN refresh - run: | - echo "https://cdn.d2.pub/${GITHUB_REPOSITORY//*\//}/preview/" > cdnrefresh.txt - qshell cdnrefresh --dirs -i ./cdnrefresh.txt - ftp: name: FTP runs-on: ubuntu-latest diff --git a/README.md b/README.md index 69ebed0d..fbfa4e48 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,6 @@ The following access addresses are built and deployed by the latest master branc | server | link | server | | --- | --- | --- | | d2.pub | [Link](https://d2.pub/d2-admin/preview) | China server | -| cdn.d2.pub | [Link](https://cdn.d2.pub/d2-admin/preview) | qiniu CDN | | github | [Link](https://d2-projects.github.io/d2-admin) | GitHub pages | | netlify | [Link](https://d2-admin.netlify.com) | Netlify CDN | @@ -39,8 +38,6 @@ The following access addresses are built and deployed by the latest master branc [document on https://d2.pub](https://d2.pub/zh/doc/d2-admin/) -> d2.pub CDN mirror deployment [https://cdn.d2.pub](https://cdn.d2.pub) - ## Features * Build with vue-cli3 diff --git a/README.zh.md b/README.zh.md index 69e32aa4..192eea8e 100644 --- a/README.zh.md +++ b/README.zh.md @@ -31,7 +31,6 @@ | 位置 | 链接 | 部署位置 | | --- | --- | --- | | d2.pub | [preview](https://d2.pub/d2-admin/preview) | 中国服务器 | -| cdn.d2.pub | [preview](https://cdn.d2.pub/d2-admin/preview) | 七牛云 CDN | | github | [preview](https://d2-projects.github.io/d2-admin) | GitHub pages | | netlify | [preview](https://d2-admin.netlify.com) | Netlify CDN | @@ -39,8 +38,6 @@ [在 https://d2.pub 上的本项目文档](https://d2.pub/zh/doc/d2-admin/) -> d2.pub CDN 镜像部署 [https://cdn.d2.pub](https://cdn.d2.pub) - ## 功能 * 使用 vue-cli3 构建 diff --git a/src/views/demo/plugins/import/csv.vue b/src/views/demo/plugins/import/csv.vue index 8378d46c..2e3c09f8 100644 --- a/src/views/demo/plugins/import/csv.vue +++ b/src/views/demo/plugins/import/csv.vue @@ -55,7 +55,7 @@ export default { return false }, download () { - this.$open('https://cdn.d2.pub/files/d2-admin/demo-csv.csv') + this.$open('https://file.d2.pub/document/d2-admin/demo-csv.csv') } } } diff --git a/src/views/demo/plugins/import/xlsx.vue b/src/views/demo/plugins/import/xlsx.vue index 34d04de9..97cbfb18 100644 --- a/src/views/demo/plugins/import/xlsx.vue +++ b/src/views/demo/plugins/import/xlsx.vue @@ -57,7 +57,7 @@ export default { return false }, download () { - this.$open('https://cdn.d2.pub/files/d2-admin/demo-table.xlsx') + this.$open('https://file.d2.pub/document/d2-admin/demo-table.xlsx') } } } diff --git a/src/views/system/index/components/d2-badge/index.vue b/src/views/system/index/components/d2-badge/index.vue index 4d3be59c..24402f98 100644 --- a/src/views/system/index/components/d2-badge/index.vue +++ b/src/views/system/index/components/d2-badge/index.vue @@ -25,7 +25,6 @@ export default { ], [ { img: 'https://github.com/d2-projects/d2-admin/workflows/Deploy%20https%3A%2F%2Fd2.pub/badge.svg', link: `${linkD2Admin}/actions?query=workflow%3A%22Deploy+https%3A%2F%2Fd2.pub%22` }, - { img: 'https://github.com/d2-projects/d2-admin/workflows/Deploy%20https%3A%2F%2Fcdn.d2.pub/badge.svg', link: `${linkD2Admin}/actions?query=workflow%3A%22Deploy+https%3A%2F%2Fcdn.d2.pub%22` }, { img: 'https://github.com/d2-projects/d2-admin/workflows/Deploy%20Github/badge.svg', link: `${linkD2Admin}/actions?query=workflow%3A%22Deploy+Github%22` }, { img: 'https://api.netlify.com/api/v1/badges/a5dd4bbd-da3f-4145-98a9-8012577bdcf5/deploy-status', link: 'https://app.netlify.com/sites/d2-admin/deploys' } ],