Automatically deploying Angular applications
In this last section, you will learn how to automatically deploy Angular applications inside your Nx monorepo to GitHub Pages. You will set up a CI/CD pipeline using GitHub Actions that deploys the demo application we’ve created whenever you merge code to your main branch on GitHub. We will create a .yml
file containing all the steps necessary for the deployment. Inside the .yml
file, we will use the YAML language, which is commonly used to create configuration files for various DevOps tools and programs.
Creating an access token
Before you start creating a .yml
file, you need to create an access token inside your GitHub account. GitHub needs to know you’re authenticated to deploy applications to GitHub Pages before it can perform the deployment. You provide the necessary authentication to GitHub, providing an access token to the deployment step inside your .yml
file. So, the first thing you need to do is create an access...