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 47e8760 commit bb61c6e
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 @@ -38,13 +38,16 @@ jobs:
# Temporarily move the public directory
mv public ../public_temp
# Clean the working directory
git clean -fdx
# Remove all files except .git directory
find . -mindepth 1 -not -name '.git' -exec rm -rf {} +
# Restore the public directory
mv ../public_temp public
# Copy build files into the root directory
cp -R public/* .
# Commit and push changes
git add -f .
git add -A
git commit -m "Deploy Gatsby build to publish branch"
git push origin publish --force

0 comments on commit bb61c6e

Please sign in to comment.