File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ jobs:
1313
1414 steps :
1515 - name : Download Source file
16- uses : actions/checkout@v4
16+ uses : actions/checkout@v6
1717 with :
1818 ref : source
1919 fetch-depth : 0
2020
2121 - name : Prepare Node env
22- uses : actions/setup-node@v4
22+ uses : actions/setup-node@v6
2323 with :
2424 node-version : " 20.x"
2525
@@ -38,14 +38,17 @@ jobs:
3838 git commit -m 'Update'
3939 git push -f https://x-access-token:${GITHUB_TOKEN}@github.com/fluid-dev/hexo-fluid-docs.git master
4040
41+ - name : Prepare artifacts for COS
42+ run : |
43+ rm -rf ./docs/.vuepress/dist/.git
44+ grep -rl 'hexo-fluid-docs' ./docs/.vuepress/dist | xargs -r sed -i 's/\/hexo-fluid-docs\//\/docs\//g'
45+
4146 - name : Upload to COS
4247 uses : zkqiang/tencent-cos-action@v1
4348 with :
4449 commands : |
45- rm -rf ./docs/.vuepress/dist/.git
46- sed -i 's/\/hexo-fluid-docs\//\/docs\//g' `grep 'hexo-fluid-docs' -rl ./docs/.vuepress/dist/*`
47- rm -r -f cos://${{ secrets.COS_BUCKET }}/docs/
48- cp -r ./docs/.vuepress/dist/ cos://${{ secrets.COS_BUCKET }}/docs/
50+ rm -r -f cos://default/docs/
51+ cp -r ./docs/.vuepress/dist/ cos://default/docs/
4952 secret_id : ${{ secrets.COS_SECRET_ID }}
5053 secret_key : ${{ secrets.COS_SECRET_KEY }}
5154 bucket : ${{ secrets.COS_BUCKET }}
You can’t perform that action at this time.
0 commit comments