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 2de0dc5 commit 687a496
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/gatsby-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,13 @@ jobs:
# Checkout the publish branch, create if it doesn't exist
git checkout -B publish
# Temporarily move the public directory
mv public ../public_temp || true
# Remove all tracked files and directories
git ls-files -o --exclude-standard | xargs rm -rf
# Remove all files except .git
find . -not -name '.git' -not -name '.' -exec rm -rf {} +
# Restore the public directory
mv ../public_temp public
mv ../public public || true
# Copy build files into the root directory
cp -R 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 687a496

Please sign in to comment.