Created
April 7, 2024 07:10
-
-
Save Eragoo/fc473259fe123c1b5656993be1635546 to your computer and use it in GitHub Desktop.
redeploy react github pages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REPO_PATH="../j2j" | |
npm run build | |
find $REPO_PATH/* -not -name 'CNAME' -delete | |
cp -R build/* $REPO_PATH | |
cd $REPO_PATH | |
git add . | |
git commit -m "redeploy" | |
git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment