generated from JetBrains/compose-multiplatform-template
-
-
Notifications
You must be signed in to change notification settings - Fork 75
63 lines (54 loc) · 2.06 KB
/
android_prod_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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Android Prod Release
on:
workflow_dispatch:
inputs:
tramline-input:
description: "Tramline input"
required: false
jobs:
build:
runs-on: ubuntu-latest
env:
TERM: dumb
ORG_GRADLE_PROJECT_READER_KEYSTORE_PASSWORD: ${{ secrets.READER_KEYSTORE_PASSWORD }}
ORG_GRADLE_PROJECT_READER_KEY_PASSWORD: ${{ secrets.READER_KEY_PASSWORD }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
steps:
- name: Configure Tramline
id: tramline
uses: tramlinehq/[email protected]
with:
input: ${{ github.event.inputs.tramline-input }}
- name: Setup versionName regardless of how this action is triggered
id: version_name
run: |
WORKFLOW_INPUT=${{ steps.tramline.outputs.version_name }}
VERSION_NAME=${WORKFLOW_INPUT:-"1.0.0"}
echo "ORG_GRADLE_PROJECT_VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV
- name: Setup versionCode regardless of how this action is triggered
id: version_code
run: |
WORKFLOW_INPUT=${{ steps.tramline.outputs.version_code }}
VERSION_CODE=${WORKFLOW_INPUT:-"1"}
echo "ORG_GRADLE_PROJECT_VERSION_CODE=$VERSION_CODE" >> $GITHUB_ENV
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: zulu
cache: 'gradle'
- name: Decrypt secrets
run: gpg --batch --yes --quiet --decrypt --passphrase=${{ secrets.KEYSTORE_ENCRYPT_KEY }} --output release/reader.jks release/reader.gpg
- name: Build release artifacts
run: ./gradlew --no-daemon androidApp:bundleRelease
- name: Upload Release Bundle
uses: actions/upload-artifact@v3
with:
name: release.aab
path: androidApp/build/outputs/bundle/release/androidApp-release.aab
- name: Clean secrets
run: |
rm -f release/app-release.jks