Skip to content

Commit

Permalink
docs: remove cdn.d2.pub
Browse files Browse the repository at this point in the history
  • Loading branch information
FairyEver committed Dec 29, 2022
1 parent 91d04bd commit 404fad8
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 54 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,13 @@ 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 |

## Document

[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
Expand Down
3 changes: 0 additions & 3 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,13 @@
| 位置 | 链接 | 部署位置 |
| --- | --- | --- |
| 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 |

## 文档

[https://d2.pub 上的本项目文档](https://d2.pub/zh/doc/d2-admin/)

> d2.pub CDN 镜像部署 [https://cdn.d2.pub](https://cdn.d2.pub)
## 功能

* 使用 vue-cli3 构建
Expand Down
2 changes: 1 addition & 1 deletion src/views/demo/plugins/import/csv.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/demo/plugins/import/xlsx.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}
}
Expand Down
1 change: 0 additions & 1 deletion src/views/system/index/components/d2-badge/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
],
Expand Down

0 comments on commit 404fad8

Please sign in to comment.