-
Notifications
You must be signed in to change notification settings - Fork 4
67 lines (56 loc) · 1.91 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
59
60
61
62
63
64
65
66
67
name: Publish to Github and Google Play
on:
push:
branches: master
tags:
- '*.*.*'
jobs:
publish-github-release:
name: Publish Github release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Decrypt and validate decrypted data
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: ./.github/workflows/decrypt-and-validate-data.sh
- name: Build apk's
run: |
./gradlew app:assembleFdroidDebug app:assembleFdroidRelease app:assembleFdroidAutomation
- name: Rename files
run: |
cp ./app/build/outputs/apk/fdroid/debug/app-fdroid-debug.apk ./keepassvault-debug.apk
cp ./app/build/outputs/apk/fdroid/release/app-fdroid-release.apk ./keepassvault-release.apk
cp ./app/build/outputs/apk/fdroid/automation/app-fdroid-automation.apk ./keepassvault-test.apk
- name: Publish Github Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
prerelease: true
files: |
./keepassvault-debug.apk
./keepassvault-release.apk
./keepassvault-test.apk
upload-to-google-play:
name: Upload App Bundle to Google Play
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Decrypt and validate decrypted data
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: ./.github/workflows/decrypt-and-validate-data.sh
- name: Upload to Google Play
run: |
./gradlew publishGplayReleaseBundle