fix(deps): update dependency @vueuse/core to ^12.5.0 #572
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy docs | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- docs/** | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set Timezone | |
run: sudo timedatectl set-timezone "Asia/Shanghai" | |
- uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: pnpm | |
- name: Install | |
run: pnpm install | |
- name: Build | |
run: pnpm build:docs | |
- name: Setup ossutil | |
uses: manyuanrong/[email protected] | |
with: | |
endpoint: ${{ secrets.ACCESS_ENDPOINT }} | |
access-key-id: ${{ secrets.ACCESS_KEY_ID }} | |
access-key-secret: ${{ secrets.ACCESS_KEY_SECRET }} | |
- name: Deploy To OSS | |
run: | | |
ossutil rm oss://${{ secrets.BUCKET_NAME }}/ -rf | |
ossutil cp ./docs/.vitepress/dist oss://${{ secrets.BUCKET_NAME }}/ -rf |