-
Notifications
You must be signed in to change notification settings - Fork 24
40 lines (34 loc) · 1.07 KB
/
create-release.yaml
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
# This workflow creates a release and uploads release binaries for each new tag created
name: create-release
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
cache: 'gradle'
- name: Prepare signing keystore
uses: mobiledevops/secret-to-file-action@v1
with:
base64-encoded-secret: ${{ secrets.KEYSTORE_CONTENT }}
filename: "keystore.jks"
- name: Build App
run: ./gradlew assembleRelease
env:
ORG_GRADLE_PROJECT_storeFilePath: "../keystore.jks"
ORG_GRADLE_PROJECT_storePass: ${{ secrets.KEYSTORE_PASSWORD }}
ORG_GRADLE_PROJECT_key: ${{ secrets.KEY_ALIAS }}
ORG_GRADLE_PROJECT_keyPass: ${{ secrets.KEY_PASSWORD }}
- name: Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
app/build/outputs/apk/release/**.apk