Description:
The TariffShield team has no automated signal when a production or staging deployment succeeds or fails, requiring developers to manually check Render and Vercel dashboards. Adding Slack notifications to the deploy workflows closes this visibility gap and ensures that the team is immediately aware of every deployment outcome, including the deployed git SHA and a direct link to the run.
Acceptance Criteria:
Relevant Files:
.github/workflows/deploy-api.yml — API deploy workflow (add Slack steps)
.github/workflows/preview-deploy.yml — Vercel preview workflow (add Slack steps)
.github/slack/deploy-success.json — Block Kit success message template
.github/slack/deploy-failure.json — Block Kit failure message template
docs/deployment.md — deployment runbook (add Notifications section)
Description:
The TariffShield team has no automated signal when a production or staging deployment succeeds or fails, requiring developers to manually check Render and Vercel dashboards. Adding Slack notifications to the deploy workflows closes this visibility gap and ensures that the team is immediately aware of every deployment outcome, including the deployed git SHA and a direct link to the run.
Acceptance Criteria:
SLACK_DEPLOY_WEBHOOK_URL) stored as a GitHub Actions secret, connected to a#tariffshield-deploysSlack channel.github/workflows/deploy-api.yml) posts a Slack message on success containing: service name, environment (productionorstaging), deployed git SHA (7 chars), deployer GitHub username, and a link to the GitHub Actions run@heremention and a link to the failed run if the deploy or health check step failsslackapi/slack-github-actionaction with a structured Block Kit payload (not a plain text webhook) for readability — a template JSON payload is stored in.github/slack/deploy-success.jsonand.github/slack/deploy-failure.jsonupdateAPI if the action supports it)docs/deployment.mdunder "Notifications"Relevant Files:
.github/workflows/deploy-api.yml— API deploy workflow (add Slack steps).github/workflows/preview-deploy.yml— Vercel preview workflow (add Slack steps).github/slack/deploy-success.json— Block Kit success message template.github/slack/deploy-failure.json— Block Kit failure message templatedocs/deployment.md— deployment runbook (add Notifications section)