Skip to content

Commit

Permalink
refactor: workflow 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
GGos3 committed Aug 10, 2024
1 parent 687a496 commit 47e8760
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/gatsby-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,16 @@ jobs:
# Checkout the publish branch, create if it doesn't exist
git checkout -B publish
# Remove all files except .git
find . -not -name '.git' -not -name '.' -exec rm -rf {} +
# Temporarily move the public directory
mv public ../public_temp
# Clean the working directory
git clean -fdx
# Restore the public directory
mv ../public public || true
mv ../public_temp public
# Commit and push changes
git add -f .
git commit -m "Deploy Gatsby build to publish branch"
git push origin publish --force
git push origin publish --force

0 comments on commit 47e8760

Please sign in to comment.