I am deploying 3 GCP cloud functions and 3 GCP cloud run services using GitHub Actions. At the moment, when I run a release, all the resources are deployed to the cloud.
on:
release:
types:
- released
Assuming that I make some code changes only for a specific cloud function, I would like to avoid redeploying the entire infrastructure.
Is it possible on release/tag to trigger only the workflow for that specific function code update filtered on the path?
Can I trigger GitHub workflow only on the release/tag event AND specific path?
Something like this:
name: ABC
on:
release:
branches:
- master
paths:
- my-directory/**