Last active
September 12, 2020 15:32
-
-
Save FeezyHendrix/ef07a21626e5028781ee20c9e03b32ad to your computer and use it in GitHub Desktop.
Github Actions config for React Native build and send android apk to slack channel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Android Release Apk | |
on: | |
push: | |
branches: | |
- release | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
tags: | |
description: 'Test scenario tags' | |
jobs: | |
install-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install npm dependencies | |
run: | | |
npm install | |
build-android: | |
needs: install-and-test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install npm dependencies | |
run: | | |
npm install | |
- name: Build Android Release | |
run: | | |
cd android && ./gradlew assembleRelease | |
- name: Send to Slack | |
uses: adrey/slack-file-upload-action@master | |
with: | |
token: ${{ secrets.SLACK_TOKEN }} | |
filename: app-release.apk | |
initial_comment: 'New Release Build' | |
title: '<title>' | |
path: '<path to file>' | |
channel: ${{ secrets.SLACK_CHANNEL }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment