-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (39 loc) · 1.21 KB
/
create_github_release.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
name: Create Release
permissions: write-all
on:
release:
types: [ published , prereleased ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up JDK
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: gradle
- name: Create release key
run: |
echo "$LEANSTREAM_JKS" > leanstream.b64
base64 --decode leanstream.b64 > leanstream.jks
env:
LEANSTREAM_JKS: ${{ secrets.LEANSTREAM_JKS }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew assembleRelease
env:
LEANSTREAM_KEY_PASSWORD: ${{ secrets.LEANSTREAM_KEY_PASSWORD }}
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: app/build/outputs/apk/release/app-release.apk
- name: Download Build Artifact
uses: actions/upload-artifact@v4
with:
name: LeanStream-Release-${{ github.sha }}
path: app/build/outputs/apk/release/app-release.apk