ci: links check during pr and everyday
Signed-off-by: Bird <aflybird0@gmail.com>
This commit is contained in:
18
.github/workflows/cos.yaml
vendored
18
.github/workflows/cos.yaml
vendored
@@ -11,17 +11,19 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: install dependencies
|
||||
run: |
|
||||
sudo pip install coscmd
|
||||
sudo pip install tccli
|
||||
npm i
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: install doc dependencies
|
||||
run: sudo npm i
|
||||
|
||||
- name: build
|
||||
run: |
|
||||
npm run docs:build
|
||||
|
||||
- name: install coscmd and tccli
|
||||
run: |
|
||||
sudo pip3 install coscmd
|
||||
sudo pip3 install tccli
|
||||
|
||||
- name: confirgure coscmd and tccli
|
||||
env:
|
||||
@@ -38,4 +40,4 @@ jobs:
|
||||
- name: upload and refresh cdn
|
||||
run: |
|
||||
coscmd upload -rfs --delete ./.vitepress/dist/ /
|
||||
tccli cdn PurgePathCache --cli-unfold-argument --Paths https://wiki.xyxsw.site/ --FlushType flush
|
||||
tccli cdn PurgePathCache --cli-unfold-argument --Paths https://wiki.xyxsw.site/ --FlushType flush
|
||||
|
||||
Reference in New Issue
Block a user