mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-04 23:17:34 +08:00
fix: surface backend deploy errors in GitHub Actions (#917)
This commit is contained in:
@@ -67,11 +67,12 @@ jobs:
|
|||||||
if [ "$debug_mode" = "true" ]; then
|
if [ "$debug_mode" = "true" ]; then
|
||||||
pnpm run deploy
|
pnpm run deploy
|
||||||
else
|
else
|
||||||
output=$(pnpm run deploy 2>&1)
|
if pnpm run deploy >/dev/null 2>&1; then
|
||||||
if [ $? -ne 0 ]; then
|
echo "Deploy succeeded"
|
||||||
code=$?
|
else
|
||||||
echo "Command failed with exit code $code"
|
code=$?
|
||||||
exit $code
|
echo "Command failed with exit code $code"
|
||||||
|
exit "$code"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "Deployed for tag ${{ github.ref_name }}"
|
echo "Deployed for tag ${{ github.ref_name }}"
|
||||||
@@ -79,4 +80,4 @@ jobs:
|
|||||||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
# ✅ 将 secret 映射到环境变量中
|
# ✅ 将 secret 映射到环境变量中
|
||||||
WRANGLER_TOML_CONTENT: ${{ secrets.BACKEND_TOML }}
|
WRANGLER_TOML_CONTENT: ${{ secrets.BACKEND_TOML }}
|
||||||
|
|||||||
Reference in New Issue
Block a user