Create a new Slack app. Copy it's OAuth Access token.
Create a new GitHub secret with the OAuth Access token.
Invite the Slack app into the channel where you want to announce the deployments.
Add two new environment variables to the preview-provision.yml workflow:
SLACK_ANNOUNCEMENT_ENABLED: true
SLACK_BOT_USER_OAUTH_TOKEN: ${{ secrets.SLACK_BOT_USER_OAUTH_TOKEN }}
SLACK_CHANNEL: "#deployments" (replace this with the channel you invited the bot to)
Test a deployment.
The Slack Notification will only be sent when the site is first created. Subsequent pushes to the same PR won't trigger the notification.
Fixes #77
To test this:
Create a new Slack app. Copy it's OAuth Access token.
Create a new GitHub secret with the OAuth Access token.
Invite the Slack app into the channel where you want to announce the deployments.
Add two new environment variables to the preview-provision.yml workflow:
Test a deployment.
The Slack Notification will only be sent when the site is first created. Subsequent pushes to the same PR won't trigger the notification.