-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.59 KB
/
android_publish_realese.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Publish release APK
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
tags:
- '*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
package-release-apk:
name: Generate release APK
runs-on: ubuntu-latest
steps:
- name: Checkout code for app release
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Generate signed APK
run: ./gradlew assembleRelease --stacktrace
- name: Sign APK with keystore
uses: r0adkll/sign-android-release@v1
id: sign_app
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.KEY_STORE }}
alias: ${{ secrets.KEY_STORE_ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASS }}
keyPassword: ${{ secrets.KEY_STORE_PASS }}
env:
BUILD_TOOLS_VERSION: "30.0.2"
- name: Upload release APK
uses: actions/upload-artifact@v2
with:
name: inews-release.apk
path: ${{steps.sign_app.outputs.signedReleaseFile}}
- name: Echo APK
run: echo Signed APK FILE ${{steps.sign_app.outputs.signedReleaseFile}}
- name: Release signed APK
uses: MicahSphelele/action-publish-signed-apk@main
env:
GITHUB_TOKEN: ${{ secrets.INEWS_TOKEN }}
APP_FOLDER: app
FILE_DIR: ${{steps.sign_app.outputs.signedReleaseFile}}