feat:new option: the review ratio can be adjusted #172
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: Deploy to Aliyun OSS | |
| on: | |
| push: | |
| branches: [ 'master' ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| build-path: dist | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 8 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build | |
| run: pnpm run build-oss | |
| - name: Deploy to OSS + Refresh CDN | |
| run: pnpm run deploy-oss | |
| env: | |
| OSS_KEY_ID: ${{ secrets.OSS_KEY_ID }} | |
| OSS_KEY_SECRET: ${{ secrets.OSS_KEY_SECRET }} | |
| OSS_BUCKET: ${{ secrets.OSS_BUCKET }} | |
| OSS_REGION: ${{ secrets.OSS_REGION }} | |
| CDN_DOMAIN: ${{ secrets.CDN_DOMAIN }} |