Created
May 7, 2020 07:54
-
-
Save genju83/c77184fa48b2d0a71283872f3f171725 to your computer and use it in GitHub Desktop.
android app release build with sign
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: assembleRelease | |
on: | |
create: | |
tags: | |
- v* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install JDK 1.8 | |
uses: actions/setup-java@v1.3.0 | |
with: | |
java-version: 1.8 | |
- run: echo $SIGNING_KEY | base64 -d > app/keystore/jellycrew.jks | |
env: | |
SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | |
- name: Build release APK | |
run: bash ./gradlew :app:assembleRelease | |
env: | |
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }} | |
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
ALIAS: ${{ secrets.ALIAS }} | |
- name: Upload apk | |
uses: actions/upload-artifact@v1.0.0 | |
with: | |
name: apk | |
path: app/build/outputs/apk/release/app-release.apk | |
- name: Upload mapping.txt | |
uses: actions/upload-artifact@v1.0.0 | |
with: | |
name: mapping | |
path: app/build/outputs/mapping/release/mapping.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment