File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,24 +24,12 @@ jobs:
2424 - name : Build
2525 run : pnpm build
2626
27- # - run: "ls ${{ github.workspace}}/blog/.vitepress/dist"
28-
2927 # - name: Deploy Github Pages
3028 # uses: peaceiris/actions-gh-pages@v3
3129 # with:
3230 # github_token: ${{ secrets.TOKEN }}
3331 # publish_dir: blog/dist
3432
35- # - name: Deploy Serve
36- # uses: easingthemes/ssh-deploy@main
37- # env:
38- # SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
39- # ARGS: "-rltgoDzvO"
40- # SOURCE: "blog/dist/"
41- # REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
42- # REMOTE_USER: ${{ secrets.REMOTE_USER }}
43- # TARGET: ${{ secrets.REMOTE_TARGET }}
44- # EXCLUDE: "/node_modules/"
4533
46- - name : 部署到 CloudBase
47- run : " npx tcb login --apiKeyId ${{secrets.CLOUDBASE_KEY }} --apiKey ${{secrets.CLOUDBASE_SECRET }} && npm run deploy "
34+ - name : 部署到 OSS
35+ run : " npx @web.worker/s3-upload-folder --dist blog/dist --ak ${{secrets.AK }} --sk ${{secrets.SK }} --bucketName ${{secrets.BUCKET}} --region ${{secrets.REGION}} --endpoint ${{secrets.ENDPOINT}} --prefix / "
Original file line number Diff line number Diff line change 2828 "dependencies" : {
2929 "@cloudbase/cli" : " ^2.1.6" ,
3030 "@vueuse/core" : " ^10.2.1" ,
31+ "@web.worker/s3-upload-folder" : " ^0.1.0" ,
3132 "vue" : " ^3.2.41"
32- },
33- "packageManager" : " yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
33+ }
3434}
You can’t perform that action at this time.
0 commit comments