Skip to content

Instantly share code, notes, and snippets.

@FeezyHendrix
Last active September 12, 2020 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FeezyHendrix/ef07a21626e5028781ee20c9e03b32ad to your computer and use it in GitHub Desktop.
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
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