48
48
uses : actions/setup-node@v4
49
49
with :
50
50
node-version : 18
51
+ cache-dependency-path : documentation/yarn.lock
52
+ cache : yarn
51
53
52
54
- name : Build VitePress site
53
55
working-directory : documentation
@@ -62,24 +64,24 @@ jobs:
62
64
build_dir : documentation/docs/.vitepress/dist/
63
65
fqdn : cosid.ahoo.me
64
66
65
- - name : Build VitePress site with SITE_BASE
66
- working-directory : documentation
67
- env :
68
- SITE_BASE : /cosid/
69
- run : yarn add -D vitepress && yarn run docs:build
70
-
71
- - name : Deploy to gh-pages-with-site-base
72
- uses : crazy-max/ghaction-github-pages@v4
73
- env :
74
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
75
- with :
76
- target_branch : gh-pages-with-site-base
77
- build_dir : documentation/docs/.vitepress/dist/
78
-
79
- - name : Sync to Gitee
80
- uses : wearerequired/git-mirror-action@master
81
- env :
82
- SSH_PRIVATE_KEY : ${{ secrets.SSH_PRIVATE_KEY }}
83
- with :
84
- source-repo : " git@github.com:Ahoo-Wang/CosId.git"
85
- destination-repo : " git@gitee.com:AhooWang/CosId.git"
67
+ # - name: Build VitePress site with SITE_BASE
68
+ # working-directory: documentation
69
+ # env:
70
+ # SITE_BASE: /cosid/
71
+ # run: yarn add -D vitepress && yarn run docs:build
72
+ #
73
+ # - name: Deploy to gh-pages-with-site-base
74
+ # uses: crazy-max/ghaction-github-pages@v4
75
+ # env:
76
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77
+ # with:
78
+ # target_branch: gh-pages-with-site-base
79
+ # build_dir: documentation/docs/.vitepress/dist/
80
+ #
81
+ # - name: Sync to Gitee
82
+ # uses: wearerequired/git-mirror-action@master
83
+ # env:
84
+ # SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
85
+ # with:
86
+ # source-repo: "git@github.com:Ahoo-Wang/CosId.git"
87
+ # destination-repo: "git@gitee.com:AhooWang/CosId.git"
0 commit comments