Code Monkey home page Code Monkey logo

github_action_release's Introduction

A Example to build a release apk by Github Action

ReadMe:

中文ReadMe

Warning:

https://www.pgyer.com is a platform to release the apk for testing member,so if you don't need this fuction,I suggest you clone the code and delete the following code in the entrypoint.sh

var="./${APP_FOLDER}/build/outputs/apk/release/*-release.apk"
local="$(find  -wholename $var)"
echo $local
curl -F "file=@$local" \
        -F "uKey=${uKey}" \
        -F "_api_key=${apiKey}" \
        https://www.pgyer.com/apiv1/app/upload

Remember add the code in your ./app/build.gradle

buildTypes{
    release {
       signingConfig signingConfigs.release
    }
}

Example:


name: Build Apk

on:
  push:
    branches: [ master ]

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: Make Gradle executable
      run: chmod +x ./gradlew
    - name: Build with Gradle
      run: ./gradlew build
    - name: Build Release APK
      run: ./gradlew assembleRelease
    - name: Releasing using Hub And 
      uses: ShowMeThe/github_action_release@master
      env:
       GITHUB_TOKEN: Your GITHUB_TOKEN
       APP_FOLDER: app
       BRANCH: master
       VERSION_NAME: v1.0
       uKey: your pgyer key 
       apiKey: your pgyer apiKey

Check your own pgyer key on https://www.pgyer.com/account/api

github_action_release's People

Contributors

showmethe avatar

Stargazers

Kumar Abinash avatar Esbelta Teresa Amaral avatar DaYuan avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

tahab0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.