Skip to content

Commit

Permalink
chore: workflow 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
GGos3 committed Aug 10, 2024
1 parent 7b06712 commit 0fba669
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
SERVER_USER: ${{ secrets.SERVER_USER }}
run: |
ssh -o StrictHostKeyChecking=no -p "$SERVER_PORT" "$SERVER_USER@$SERVER_IP" << 'EOF'
cd ~/blog
cd ~/blog
rm -rf * # Remove all files and directories in the blog directory
git fetch origin publish
EOF
git reset --hard origin/publish
EOF
2 changes: 2 additions & 0 deletions .github/workflows/gatsby-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
rm -rf *
rm -rf .github
rm -rf .vendor
rm .eslintrc.json
rm .gitignore
# Restore the public directory
mv ../public_temp public
Expand Down

0 comments on commit 0fba669

Please sign in to comment.