depoly: try use inline env var
All checks were successful
/ depoly (push) Successful in 1m18s

This commit is contained in:
thislight 2024-11-11 15:06:48 +08:00
parent 8b69968b8f
commit c372ea4a92
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E

View file

@ -31,16 +31,12 @@ jobs:
run: bun install run: bun install
- name: Build Dist (Staging) - name: Build Dist (Staging)
run: bun dist -m staging run: VITE_CODE_VERSION=$GITHUB_SHA bun dist -m staging
if: env.GITHUB_REF_NAME == 'master' if: env.GITHUB_REF_NAME == 'master'
env:
VITE_CODE_VERSION: ${{ env.GITHUB_SHA }}
- name: Build Dist - name: Build Dist
run: bun dist run: VITE_CODE_VERSION=$GITHUB_SHA bun dist
if: env.GITHUB_REF_NAME != 'master' if: env.GITHUB_REF_NAME != 'master'
env:
VITE_CODE_VERSION: ${{ env.GITHUB_SHA }}
- name: Depoly to Preview - name: Depoly to Preview
uses: https://github.com/cloudflare/wrangler-action@v3 uses: https://github.com/cloudflare/wrangler-action@v3