Deploy Static Website

Github Pages


Github - Create a new repository page

Github - Repository page

Desktop - Install git

https://git-scm.com/downloads

# apt-get install git

Desktop - Create site folder

$ mkdir site-name

VSCode - Open folder

Go to File > Menu > Open folder

VSCode - Initialize Git Repository

$ git init

VSCode - Create site

VSCode - Git add

$ git add -A

VSCode - Git commit

$ git config user.email "example@email.com"
$ git config user.name "example"
$ git commit -m "primeira versão do site"

VSCode - Git remote add

$ git remote add origin https://github.com/lucachaves/site-name.git

VSCode - Git remote add

$ git push -u origin master

Enter login and password

git-credential-store - Helper to store credentials on disk:

$ git config credential.helper store
$ git push

Github - Repository page with code

Github - Create github page

https://username.github.io/site-name/

Netlify


Como colocar seu site no ar de graca

References