Home > Back-end >  How to setup Github Actions for Angular workspace?
How to setup Github Actions for Angular workspace?

Time:01-23

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.

CodePudding user response:

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.

  • Related