Skip to content

Commit 47c4a93

Browse files
authored
ci(deploy): sync repository on VPS before executing deployment script (#207)
1 parent a940e56 commit 47c4a93

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/deploy-vps.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,6 @@ jobs:
3535
port: ${{ env.VPS_SSH_PORT }}
3636
script: |
3737
cd ~/projects/DevImpact || cd /app || exit 1
38+
git fetch origin main
39+
git reset --hard origin/main
3840
bash ops/deploy/deploy-leaderboard.sh

0 commit comments

Comments
 (0)