❓ Our github actions support several notification types to Slack to notify the team about the build status.
But there is some additional setup both in Slack and on EAS to make this work.
- Staging and Production Notifications:
- Open Slack
- In the left sidebar, click on
... Moreand selectTools - Click on
New Workflow - name it
[App name] [Env] [Release] - Choose
from a webhookoption - add data variables for
version- string andchangelog(optional) - string - add
Messagesstep and select thechannelwhere you want to send the message - Add the message
Example message:
Hey @channel, :rocket:
We’re excited to announce the release of the new EXPO-TEMPLATE app version!
Latest version: {{version}}
Changelog: https://github.com/strvcom/{repository-name}/releases/tag/v{{version}}
-
you must create workflow for both
stagingandproductionenvironments -
Copy the
webhook URLand add it -
for STAGING -
line 34 -
for PRODUCTION -
line 64
Dev build notifications
- the dev distribution builds are triggered by the
Create dev buildworkflow - To distribute the dev builds to among the team members, choose one of the options and follow the steps below:
- Create a new Slack App on https://api.slack.com/apps
- Select
Incoming Webhooksand turn it on - Wait for the approval
- Add
New Webhook to Workspaceand select the channel - copy the
Webhook URL
This is necessary to include the QR code to download the app in the notification message.
- Go to https://www.cloudflare.com/
- Create a new Cloudflare Worker
- Copy the worker functionality from the worker.js
- replace
SLACK_WEBHOOK_URLvariable with yours - deploy the worker
- create a new webhook via EAS CLI and the worker url
https//your-worker.account-name.workers.dev
eas webhook:create