-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (39 loc) · 1.2 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
name: Release
on:
release:
types: [ published ]
jobs:
release:
name: Release
runs-on: ubuntu-latest
env:
TERM: dumb
steps:
- uses: actions/checkout@v4
- name: set up JDK 18
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 :demo:bundleRelease :demo:assembleRelease
- name: Upload APK to release
uses: softprops/action-gh-release@v2
id: release
with:
files: |
demo/build/outputs/apk/release/demo-release.apk
- name: Clean secrets
if: always()
run: release/signing-cleanup.sh