React原生github操作make apk

xe55xuns  于 2023-03-19  发布在  React
关注(0)|答案(1)|浏览(111)

我有下面的项目link,我如何使它通过github的行动,我可以创建一个APK,你可以很容易地安装.
你能给予我一下吗?

8iwquhpp

8iwquhpp1#

您只需像在本地执行一样执行Gradle。
看一下这个YAML示例:

name: Build Release APK

on:
  push:
    branch:
      - 'master'

jobs:
  Gradle:
    runs-on: ubuntu-latest
    steps:
    - name: checkout code
      uses: actions/checkout@v2
    - name: setup jdk
      uses: actions/setup-java@v1
      with:
        java-version: 11
    - name: Make Gradle executable
      run: chmod +x ./gradlew
    - name: Build Release APK
      run: ./gradlew assembleRelease

灵感:https://github.com/marketplace/actions/build-android-release-apk-when-create-new-tag

相关问题