Search code examples
angulargithub-actionsfirebase-hostingangular-workspace-configuration

How to setup Github Actions for Angular workspace?


I have an angular workspace with 3 projects (all hosted on firebase)

my-workspace
 |-project1
 |-project2
 `-project3

Setting up github actions to build & deploy for angular apps is easy.

But how can I setup actions for projects in a workspace?

For example, when I push changes for project1, how can I build and deploy to project1 hosting only?

Thank you.


Solution

  • You can set up a github actions workflow for each project, each with a trigger like the following:

    on:
      push:
        paths:
          - 'project1/**'
    

    Then simply deploy the project that has changed.