-
Notifications
You must be signed in to change notification settings - Fork 7
76 lines (62 loc) · 2.31 KB
/
release-github-fdroid.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
64
65
66
67
68
69
70
71
72
73
74
75
76
name: release-github-fdroid
on:
push:
tags:
- '*-fdroid'
- '*-beta'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CACHE_VERSION: 1
jobs:
release-github-fdroid:
runs-on: ubuntu-latest
steps:
- name: clone
uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: true
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: keystore.jks
env:
KEYSTORE_JKS: ${{ secrets.KEYSTORE_JKS }}
run: echo "$KEYSTORE_JKS" | base64 -d > app/keystore.jks
- name: google-services.json
env:
GOOGLE_PLAY_JSON_DEVELOPMENT: ${{ secrets.GOOGLE_PLAY_JSON_DEVELOPMENT }}
run: |
echo "${GOOGLE_PLAY_JSON_DEVELOPMENT}" | base64 -d > app/google-services.json
ls -al
ls -al app/src
- name: local.properties
env:
LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }}
LOCAL_PROPERTIES_CLOUDLIB: ${{ secrets.LOCAL_PROPERTIES_CLOUDLIB }}
LOCAL_PROPERTIES_UTILSLIB: ${{ secrets.LOCAL_PROPERTIES_UTILSLIB }}
run: |
echo "${LOCAL_PROPERTIES}" | base64 -d > local.properties
echo "${LOCAL_PROPERTIES_CLOUDLIB}" | base64 -d > QuoteUnquote.cloudLib/cloudLib/local.properties
echo "${LOCAL_PROPERTIES_UTILSLIB}" | base64 -d > QuoteUnquote.utilsLib/utilsLib/local.properties
- name: build
run: ./gradlew clean assembleFdroidRelease --stacktrace
- name: install apksigner
run: sudo apt-get -y install apksigner
- name: sign
env:
KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
run: apksigner sign --ks app/keystore.jks --ks-key-alias $KEYSTORE_ALIAS --ks-pass env:KEYSTORE_PASSWORD --out ./app-fdroid-release-signed.apk ./app/build/outputs/apk/fdroid/release/app-fdroid-release-unsigned.apk
- name: release note
run: |
bin/release-note.sh
- name: release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh repo set-default jameshnsears/QuoteUnquote
gh release create ${{ github.ref }} --latest -F release-github-notes.md app-fdroid-release-signed.apk