-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.29 KB
/
Copy pathrelease.yml
File metadata and controls
53 lines (44 loc) · 1.29 KB
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
name: Publish Android Release
on:
push:
tags:
- 'v*'
jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Code
uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Decode Keystore
run: |
echo "${{ secrets.RELEASE_KEYSTORE_BASE64 }}" | base64 --decode --ignore-garbage > app/release-key.jks
- name: Create Keystore Properties
run: |
cat <<EOF > keystore.properties
storeFile=release-key.jks
storePassword=${{ secrets.RELEASE_KEYSTORE_PASSWORD }}
keyAlias=${{ secrets.RELEASE_KEY_ALIAS }}
keyPassword=${{ secrets.RELEASE_KEY_PASSWORD }}
EOF
- name: Grant Execute Permission for Gradlew
run: chmod +x gradlew
- name: Build FOSS Release APK
run: ./gradlew assembleFossRelease
- name: Create GitHub Release
uses: softprops/action-gh-release@v3
with:
files: |
app/build/outputs/apk/foss/release/app-foss-release.apk
generate_release_notes: true
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}