docs: remove cdn.d2.pub

This commit is contained in:
FairyEver 2022-12-29 14:07:58 +08:00
parent 91d04bddb2
commit 404fad81e8
6 changed files with 2 additions and 54 deletions

View File

@ -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

View File

@ -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

View File

@ -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 构建

View File

@ -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')
}
}
}

View File

@ -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')
}
}
}

View File

@ -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' }
],