generated from mshdabiola/SkeletonMultiplatform
-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (51 loc) · 1.65 KB
/
deploy_play_to_github.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
56
57
58
59
name: Deploy Play to github
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
## 2
jobs:
## 3
build:
runs-on: ubuntu-latest
steps:
# 1
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
# 2
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Accept Android licenses
run: yes | "$ANDROID_HOME"/cmdline-tools/latest/bin/sdkmanager --licenses || true
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-use-agree: "yes"
- name: Build release variant apk
run: ./gradlew assembleGooglePlayRelease
- name: Sign APK
uses: r0adkll/sign-android-release@v1.0.4
with:
releaseDirectory: app/build/outputs/apk/googlePlay/release
signingKeyBase64: ${{ secrets.SIGNING_KEY2 }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: "34.0.0"
# 4
- name: Draft Release
uses: ncipollo/release-action@v1.14.0
with:
allowUpdates: true
artifacts: "app/build/outputs/apk/**/**/**/*.apk,app/build/outputs/mapping/**/**/*.txt"
token: ${{ secrets.TOKEN }}
generateReleaseNotes: true
bodyFile: distribution/whatsnew/whatsnew-en-US
prerelease: false