Skip to content

Instantly share code, notes, and snippets.

@Eragoo
Created April 7, 2024 07:10
Show Gist options
  • Save Eragoo/fc473259fe123c1b5656993be1635546 to your computer and use it in GitHub Desktop.
Save Eragoo/fc473259fe123c1b5656993be1635546 to your computer and use it in GitHub Desktop.
redeploy react github pages
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