This commit is contained in:
parent
8b69968b8f
commit
c372ea4a92
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue