Skip to content

Commit c000ac8

Browse files
committed
Use git stash instead of clean to preserve .env
1 parent 807a809 commit c000ac8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/deploy-beta.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
port: ${{ secrets.SSH_PORT || 22 }}
1818
script: |
1919
cd ${{ secrets.BETA_PATH }}
20-
git reset --hard HEAD
21-
git clean -fd
20+
git add -A
21+
git stash
2222
git pull origin beta

.github/workflows/deploy-main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
port: ${{ secrets.SSH_PORT || 22 }}
1818
script: |
1919
cd ${{ secrets.MAIN_PATH }}
20-
git reset --hard HEAD
21-
git clean -fd
20+
git add -A
21+
git stash
2222
git pull origin main

0 commit comments

Comments
 (0)