Skip to content

GitHub Pages Deployment

Dennis Chacko edited this page May 15, 2021 · 4 revisions

GitHub Pages

To host this project as a GitHub Pages website, follow the below steps:

  • Step 1: Update the environment-github-pages.ts file The environment-github-pages.ts should be located under the src/environments folder Replace all occurrences of Angular-template with the name of your GitHub repository

  • Step 2: Build the application To build the application, run the below command

foo@bar:~$: npm install
foo@bar:~$: npm run build-prod-github-pages

This should create a docs folder with all the required files. Commit the files in the docs folder and merge to the `master' branch

  • Step 3: Publish the application

    Follow the instructions mentioned here to deploy the application to GitHub Pages. Please choose the master or main branch for step#4

See below for sample configuration that deploys from the master branch's docs folder

GitHub Pages Configuration

Clone this wiki locally