Skip to content

ryo-rm/eas-slack-build-notify

Repository files navigation

eas-slack-build-notify

A serverless lambda to notify the result of EAS build.
Using Serverless Framework.

Screen Shot - Build Success. success - Build Failed. failed

Installation

  1. Slack Bot Setup
    1. Create slack app
      needs a chat:write and files:write
      slack scopes
    2. Invite app to channel
    3. Rewrite REPLACE_ME in the serverless.yml file
    4. Deploy to AWS
      $ npm i
      $ sls deploy
  2. EAS Build Webhooks setup
    1. Set up a webhook with eas webhook:create.
      The URL of the webhook is the URL of the endpoint returned by sls deploy.
      e.g. https://XXXXXXXX.execute-api.YOUR-REGION.amazonaws.com/dev/webhook

Environment

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published