From c372ea4a92b9b44598b7d2a63123425b5eabfe89 Mon Sep 17 00:00:00 2001 From: thislight Date: Mon, 11 Nov 2024 15:06:48 +0800 Subject: [PATCH] depoly: try use inline env var --- .forgejo/workflows/depoly.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/depoly.yml b/.forgejo/workflows/depoly.yml index b541fa0..9ae7044 100644 --- a/.forgejo/workflows/depoly.yml +++ b/.forgejo/workflows/depoly.yml @@ -31,16 +31,12 @@ jobs: run: bun install - 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' - env: - VITE_CODE_VERSION: ${{ env.GITHUB_SHA }} - name: Build Dist - run: bun dist + run: VITE_CODE_VERSION=$GITHUB_SHA bun dist if: env.GITHUB_REF_NAME != 'master' - env: - VITE_CODE_VERSION: ${{ env.GITHUB_SHA }} - name: Depoly to Preview uses: https://github.com/cloudflare/wrangler-action@v3