Skip to content

Commit f7eca8f

Browse files
committed
Track production/development deploys via GitHub environments
Add 'environment: production' to the cd_prod deploy job and 'environment: development' to the cd_dev deploy job so each real pm2 deploy registers a GitHub Deployment (active on success, prior auto-inactivated), matching how TPEN-services tracks deployments.
1 parent 5b2bb58 commit f7eca8f

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/cd_dev.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
needs:
5959
- merge-branch
6060
- test
61+
environment: development
6162
strategy:
6263
matrix:
6364
node-version:

.github/workflows/cd_prod.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
deploy:
2323
needs:
2424
- test
25+
environment: production
2526
strategy:
2627
matrix:
2728
node-version:

0 commit comments

Comments
 (0)