Skip to content

Instantly share code, notes, and snippets.

View michaelsynan's full-sized avatar

Michael Synan michaelsynan

View GitHub Profile
@michaelsynan
michaelsynan / README.md
Last active November 26, 2023 15:27
Deploy to GitHub Pages with GitHub Action Workflow

Michael Synan GitHub Gists

Some Gists for GitHub deployments, automations and more.

@michaelsynan
michaelsynan / nuxt_gh-pages.md
Last active April 15, 2023 00:41
Deploy static Nuxt site to Github Pages with a custom domain

Easily Deploy a Static Nuxt Site on GitHub Pages w/ Custom Domain

Deploy to GitHub Pages and generate .nojekyll and CNAME files to output directory. Create & push to gh-pages subtree.

touch ./gitignore 
sed -i '/.output/d' .gitignore # remove .output from .gitignore
npm run generate
touch .output/public/.nojekyll    
echo "yourdomain.com" > .output/public/CNAME # only necessary for custom domain