This file contains hidden or 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: 简化版部署到阿里云 OSS | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: 设置 Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "18" | |
| - name: 安装 pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: latest | |
| - name: 安装依赖并构建 | |
| run: | | |
| pnpm install | |
| pnpm run build | |
| - name: 部署到阿里云 OSS | |
| uses: fangbinwei/aliyun-oss-website-action@v1 | |
| with: | |
| accessKeyId: ${{ secrets.ALICLOUDOSS_KEY_ID }} | |
| accessKeySecret: ${{ secrets.ALICLOUDOSS_KEY_SECRET }} | |
| bucket: docs.rustfs.com | |
| folder: .vitepress/dist |