-
-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (37 loc) · 1.36 KB
/
release-android.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
name: Publish Android build to Google Play
on:
# Enable manual run
workflow_dispatch:
# Build & deploy for published releases
release:
types:
- published
env:
appname-without-spaces: "FeelingFinder"
packageName: "codes.merritt.FeelingFinder"
repository: "merrit/feeling_finder"
repositoryUrl: https://github.com/Merrit/feeling_finder
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Download .aab artifact
run: wget ${{env.repositoryUrl}}/releases/latest/download/${{env.appname-without-spaces}}-Android.aab
# Works with the r0adkll/upload-google-play action.
- name: Download changelog
run: |
mkdir whatsNewDirectory
gh release view --json body --jq .body --repo ${{env.repository}} >> whatsNewDirectory/whatsnew-en-US
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Access Google Play API key
env:
GOOGLE_PLAY_API_JSON: ${{ secrets.GOOGLE_PLAY_API_JSON }}
run: echo "$GOOGLE_PLAY_API_JSON" | base64 --decode > google_play_api.json
- name: Release Android build on Google Play
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJson: google_play_api.json
packageName: ${{env.packageName}}
releaseFiles: ${{env.appname-without-spaces}}-Android.aab
track: production