-
Notifications
You must be signed in to change notification settings - Fork 22
58 lines (56 loc) · 1.88 KB
/
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
name: Release
on:
release:
types: [ published ]
jobs:
release:
name: Release
runs-on: ubuntu-latest
env:
TERM: dumb
steps:
- uses: actions/checkout@v4
with:
lfs: 'true'
- name: set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 18
- name: Decrypt secrets
run: |
echo ${{ secrets.ENCRYPT_KEY }} | release/signing-unpack.sh
mv gradle.properties gradle.backup.properties
cat gradle.backup.properties | grep -v configuration-cache > gradle.properties
- name: Deploy to Sonatype
run: ./gradlew publish
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
- name: Build AAB & APK
run: |
./gradlew :catalog:bundleRelease :catalog:assembleRelease
- name: Upload APK to release
uses: softprops/action-gh-release@v1
id: release
with:
files: |
catalog/build/outputs/apk/release/catalog-release.apk
- name: Prepare Release Notes
run: |
mkdir whatsnew
URL=${{ steps.release.outputs.url }}
echo "See full release notes at $URL" > whatsnew/whatsnew-en-US
- name: Release to Google Play
uses: r0adkll/[email protected]
with:
serviceAccountJson: release/service-account.json
packageName: kiwi.orbit.compose.catalog
releaseFiles: catalog/build/outputs/bundle/release/catalog-release.aab
track: production
status: completed
whatsNewDirectory: whatsnew
mappingFile: catalog/build/outputs/mapping/release/mapping.txt
- name: Clean secrets
if: always()
run: release/signing-cleanup.sh