e.g. regex.github.io
ng build --prod --base-href 'https://webia1.github.io/regex.github.io/'
cd dist/regex
git init
git add .
git commit -m "INITIAL COMMIT"
git remote add origin https://github.com/webia1/regex.github.io.git
git branch -M master
git push -u origin master
Go to the pages in settings and start deploying options and save.