Skip to content

Instantly share code, notes, and snippets.

@numb95
Created September 12, 2022 16:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save numb95/d35f7be9a1d4cea5f152e58d29bbdf5b to your computer and use it in GitHub Desktop.
upload artifacts in slack channel
- export NOW=$(date "+%Y/%m/%d_%H:%M:%S")
- ./gradlew AssembleRelease
- cd app/build/outputs/apk/release/
- |
curl \
-F token="${SLACK_TOKEN}" \
-F channels="${SLACK_CHANNEL}" \
-F initial_comment="Hey people! Here is the APK of app. Publish date ${NOW}" \
-F "file=@app-release.apk" \
-H "Authorization: Bearer ${SLACK_TOKEN}" \
https://slack.com/api/files.upload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment