Skip to content

refresh the tencent cdn cachess by npm:tenyun pkg #2893

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
version: 10
run_install: true
- name: Build
run: |
Expand All @@ -45,7 +45,7 @@ jobs:
if: env.COS_SECRET_ID
run: |
python -m pip install --upgrade pip
python -m pip install setuptools tccli
python -m pip install setuptools
python -m pip install https://github.com/tencentyun/coscmd/archive/refs/heads/master.zip
- name: Upload to cos
if: env.COS_SECRET_ID
Expand All @@ -54,7 +54,6 @@ jobs:
coscmd upload -r -s $local_dir $remote_dir --ignore "$ignore"
- name: Refresh CDN
if: env.COS_SECRET_ID
run: |
tccli configure set secretId "${{secrets.COS_SECRET_ID}}"
tccli configure set secretKey "${{secrets.COS_SECRET_KEY}}"
tccli cdn PurgePathCache --cli-unfold-argument --Paths $domain --FlushType flush
env:
COS_SECRET_KEY: ${{secrets.COS_SECRET_KEY}}
run: pnpm run pure-caches
5 changes: 1 addition & 4 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export default {
srcDir: 'src',
srcExclude: [],
scrollOffset: 'header',
metaChunk: true,

head: [
['link', { rel: 'icon', href: '/favicon.svg' }],
Expand Down Expand Up @@ -215,10 +216,6 @@ export default {
allow: ['../..']
}
},
build: {
minify: 'terser',
chunkSizeWarningLimit: Infinity
},
json: {
stringify: true
}
Expand Down
14 changes: 3 additions & 11 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"private": true,
"scripts": {
"dev": "vitepress dev",
"build": "vitepress build",
"serve": "vitepress serve",
"pure-caches": "./pure-caches",
"preinstall": "npx only-allow pnpm"
},
"dependencies": {
Expand All @@ -17,18 +19,8 @@
"@types/node": "^22.13.4",
"postcss": "^8.5.2",
"postcss-import": "^16.1.0",
"terser": "^5.39.0",
"tenyun": ">= 0.3.3",
"vitepress": "1.6.3"
},
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"@algolia/client-search",
"react",
"react-dom",
"@types/react"
]
}
},
"packageManager": "[email protected]+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee"
}
Loading