From e5dd7f70f448b00c9c8d7735c256e7414b447901 Mon Sep 17 00:00:00 2001 From: zmzimpl Date: Sun, 10 Dec 2023 21:42:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20ci=20=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e974a99..9332adb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,6 +42,11 @@ jobs: - name: Create .env.production.local file run: | + # 检查环境变量是否存在 + echo "VITE_APP_API length: ${#VITE_APP_API}" + echo "VITE_SUPABASE_URL length: ${#VITE_SUPABASE_URL}" + echo "VITE_SUPABASE_ANON_KEY length: ${#VITE_SUPABASE_ANON_KEY}" + # 创建 .env.production.local 文件 echo "VITE_APP_API=${{ secrets.VITE_APP_API }}" > .env.production.local echo "VITE_SUPABASE_URL=${{ secrets.VITE_SUPABASE_URL }}" >> .env.production.local echo "VITE_SUPABASE_ANON_KEY=${{ secrets.VITE_SUPABASE_ANON_KEY }}" >> .env.production.local