- Steps to deploy the mikejobrien.com static website.
- on commit to main, new content will be deployed using Github Actions and the workflow Build and Deploy Site
- update main.yml and set hugo-version: 'x.xx.x' to version specified on hugo/releases
- hugo
- awscli
- git
- brew
- to build locally on my mac, mikejobrien.com is located in ~github/mikejobrien.com
What changed hugo releases
- Run
hugo version
#note version before - Run
brew upgrade hugo
- Run
hugo version
#note version after
- Run
cd ~/github
- Run
git clone <https://github.com/obrienmikej/mikejobrien.com.git>
- run
cd ~/github/mikejobrien.com
- run
hugo
- run
hugo deploy -dryRun
- run
hugo deploy
- run
rm -rf ~/github/mikejobrien.com/public
- commit to main and push commits to the origin remote
- Submit sitemap to Google using the Search Console Sitemaps tool
- click add/test sitemap
- enter
sitemap.xml
- Ask Google to recrawl your URLs google crawl
- fetch and render for desktop & smartphone
- run
cd ~/github/mikejobrien.com/public
- run
aws s3 sync . s3://mikejobrien.com --delete --acl public-read --dryrun
- run
aws s3 sync . s3://mikejobrien.com --delete --acl public-read