ci: build staging bundle for preview

This commit is contained in:
thislight 2024-07-22 21:59:37 +08:00
parent 5833e5a76b
commit ab99cf465b

View file

@ -28,8 +28,13 @@ jobs:
- name: Install Dependencies - name: Install Dependencies
run: pnpm i run: pnpm i
- name: Build Dist (Staging)
run: pnpm dist -m staging
if: env.GITHUB_REF_NAME == 'master'
- name: Build Dist - name: Build Dist
run: pnpm dist run: pnpm dist
if: env.GITHUB_REF_NAME != 'master'
- name: Depoly to Preview - name: Depoly to Preview
uses: https://github.com/cloudflare/wrangler-action@v3 uses: https://github.com/cloudflare/wrangler-action@v3