Skip to content

Commit 3f41552

Browse files
committed
fix: Update deployment workflow to correctly set environment variable
1 parent 93bd8ef commit 3f41552

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
env:
8-
ENV_PROD: ${{ vars.ENV_PROD }}
97

108
jobs:
119
deploy:
@@ -22,11 +20,12 @@ jobs:
2220
username: ${{ vars.SSH_USER }}
2321
port: ${{ vars.SSH_PORT }}
2422
key: ${{ secrets.SSH_SECRET_KEY }}
23+
debug: false
2524
script: |
2625
cd /home/apps/zyrohub
2726
pm2 stop ZyroHub
2827
git pull
2928
bun install
30-
echo "::add-mask::$ENV_PROD" >> .env
29+
echo "${{ vars.ENV_PROD }}" > .env
3130
bun run build
3231
pm2 start ZyroHub

0 commit comments

Comments
 (0)