diff --git a/deploy.sh b/deploy.sh index e2d9990..b21861c 100755 --- a/deploy.sh +++ b/deploy.sh @@ -9,16 +9,12 @@ npm run build # navigate into the build output directory cd dist -# if you are deploying to a custom domain -# echo 'www.example.com' > CNAME - +# create a fresh repo in dist and push to gh-pages +git init +git checkout -b gh-pages git add -A -git commit -m 'deploy' +git commit -m 'deploy' || true +git remote add origin git@github.com:dadobos/worldcountries.git +git push -f origin gh-pages -# if you are deploying to https://.github.io -# git push -f git@github.com:/.github.io.git main - -# if you are deploying to https://.github.io/ - git push -f git@github.com:dadobos/worldcountries.git main:gh-pages -# git push -f git@github.com:/world.git main:gh-pages cd - \ No newline at end of file