A serverless lambda to notify the result of EAS build.
Using Serverless Framework.
- Slack Bot Setup
- Create slack app
needs achat:write
andfiles:write
- Invite app to channel
- Rewrite
REPLACE_ME
in the serverless.yml file - Deploy to AWS
$ npm i $ sls deploy
- Create slack app
- EAS Build Webhooks setup
- Set up a webhook with
eas webhook:create
.
The URL of the webhook is the URL of the endpoint returned bysls deploy
.
e.g.https://XXXXXXXX.execute-api.YOUR-REGION.amazonaws.com/dev/webhook
- Set up a webhook with
NAME | Required | Description | Example/Document |
---|---|---|---|
EAS_SECRET_WEBHOOK_KEY | true | EAS | see SECRET_WEBHOOK_KEY |
SLACK_TOKEN | true | The OAuth token. | xoxb-XXXXXXX |
SLACK_CHANNEL | true | Slack channel | |
SLACK_CLIENT_ID | false | Client id | |
SLACK_SIGNING_SECRET | false | signing secret | |
SLACK_CLIENT_SECRET | false | ||
EXPO_DEFAULT_TEAM_NAME | false | For team accounts, it will be undefined , so you can set a default value |
yourteam |
EXPO_SLACK_ACCOUNT | false | Used for mentioning in Slack. Format: expo_account1:slack_account1,expo_account2:slack_account2 |
ryo-rm:U01MG0XXXXX |