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