How to setup Github Actions for Angular workspace?

85 views Asked by At

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.

1

There are 1 answers

1
eten On BEST ANSWER

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.