Skip to content

Commit 1f3fbf0

Browse files
committed
github actions
1 parent 823a248 commit 1f3fbf0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-and-deploy-frontend.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ jobs:
3434
HOSTNAME: ${{ secrets.HOSTNAME }}
3535
PORT: ${{ secrets.PORT }}
3636
KEY: ${{ secrets.KEY }}
37+
USERNAME: ${{ secrets.USERNAME }}
3738
run: |
3839
# Save SSH key to a temporary file
3940
echo "$KEY" > /tmp/deploy_key
4041
chmod 600 /tmp/deploy_key
4142
4243
# Use rsync to deploy static files
43-
rsync -avz -e "ssh -p $PORT -i /tmp/deploy_key" ./frontend/out/ "root@$HOSTNAME:/var/www/ikapiar"
44+
rsync -avz -e "ssh -p $PORT -i /tmp/deploy_key" ./frontend/out/ "$USERNAME@$HOSTNAME:/var/www/ikapiar"
4445
4546
# Clean up the temporary key
4647
rm -f /tmp/deploy_key

0 commit comments

Comments
 (0)