-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (37 loc) · 1.01 KB
/
build.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
name: Build & Publish Release APK
on:
push:
branches:
- stable
tags:
- "*"
workflow_dispatch:
jobs:
Gradle:
runs-on: ubuntu-latest
environment:
name: Builder
permissions:
contents: write
steps:
- name: checkout code
uses: actions/checkout@v2
- name: Build Signed APK
uses: TeamNecta/build-signed-apk@main
with:
keystore_b64: ${{ secrets.BASE_64_SIGNING_KEY }}
keystore_password: ${{ secrets.STORE_PASSWORD }}
key_alias: "key0"
key_password: ${{ secrets.KEY_PASSWORD }}
gradlew_dir: "android/"
java_version: "21"
- name: Prepare Tag
id: tag
run: echo "version=$(date +'v%y.%m.%d.%H%M%S')" >> $GITHUB_OUTPUT
- name: Release APK
uses: ncipollo/release-action@v1
with:
artifacts: app/build/outputs/apk/release/*.apk
tag: ${{ steps.tag.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}