Skip to content

Commit b3b0b2d

Browse files
author
minhnq
committed
chore: Relocate git pull from deploy script to workflow with added hard reset.
1 parent d817ead commit b3b0b2d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ jobs:
1818
port: ${{ secrets.VPS_PORT }}
1919
script: |
2020
cd check-subdomain
21+
git reset --hard origin/main
22+
git pull origin main
2123
./deploy.sh

deploy.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
git pull origin main
21
bun install
32
bun run build
43
pm2 restart devtool

0 commit comments

Comments
 (0)