name: Publish Sample App

on:
  release:
    types: [created]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - name: set up JDK 1.8
      uses: actions/setup-java@v1
      with:
        java-version: 1.8
    - name: Build with Gradle
      run: ./gradlew sample:assembleDebug
    - name: Rename apk
      run: mv android/sample/build/outputs/apk/debug/sample-debug.apk SampleApp-android.apk
    - name: Upload
      uses: skx/github-action-publish-binaries@master
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        args: 'SampleApp-android.apk'

name: Publish Sample App

on:
  release:
    types: [created]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - name: set up JDK 1.8
      uses: actions/setup-java@v1
      with:
        java-version: 1.8
    - name: Build with Gradle
      run: ./gradlew :sample:assembleDebug :sample:assembleRelease
    - name: Rename apk
      run: mv android/sample/build/outputs/apk/debug/sample-debug.apk SampleApp-android.apk
    - name: Upload
      uses: skx/github-action-publish-binaries@master
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        args: 'SampleApp-android.apk'

Build sample release build in Action
Build sample release build in Action

Summary: Build it on GitHub.

Reviewed By: jknoxville

Differential Revision: D18657328

fbshipit-source-id: a826bffbee2cb20690579c7ac4ee8f53dc976b6d
