-
Notifications
You must be signed in to change notification settings - Fork 4
75 lines (63 loc) · 2.04 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
68
69
70
71
72
73
74
75
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:
- 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: Build debug and release apk's
run: |
./gradlew app:assembleFdroidDebug app:assembleFdroidRelease
- name: Store debug apk
uses: actions/upload-artifact@v3
with:
name: app-fdroid-debug.apk
path: |
./app/build/outputs/apk/fdroid/debug/app-fdroid-debug.apk
- name: Store release apk
uses: actions/upload-artifact@v3
with:
name: app-fdroid-release.apk
path: |
./app/build/outputs/apk/fdroid/release/app-fdroid-release.apk
- name: Publish Github Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
prerelease: true
files: |
./app/build/outputs/apk/fdroid/debug/app-fdroid-debug.apk
./app/build/outputs/apk/fdroid/release/app-fdroid-release.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