Skip to content

Commit 294bafd

Browse files
committed
fix: Template injection
1 parent a201555 commit 294bafd

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/deploy-gh-pages.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ jobs:
3737
run: pnpm install
3838

3939
- name: add environment variable
40+
env:
41+
ENV_BACKEND_URL: ${{ github.event.inputs.backend_url || 'https://agent.bytedev.site/' }}
4042
run: |
41-
VITE_ORIGIN_URL="${{ github.event.inputs.backend_url || 'https://agent.bytedev.site/' }}"
4243
cat <<EOF >> designer-demo/env/.env.alpha
4344
# ---- appended by CI (gh-pages) ----
44-
VITE_ORIGIN=$VITE_ORIGIN_URL
45+
VITE_ORIGIN=$ENV_BACKEND_URL
4546
EOF
46-
echo "VITE_ORIGIN_URL=$VITE_ORIGIN_URL"
47+
echo "VITE_ORIGIN_URL=$ENV_BACKEND_URL"
4748
- name: Run Build
4849
run: |
4950
set -eo pipefail

0 commit comments

Comments
 (0)