-
Notifications
You must be signed in to change notification settings - Fork 149
41 lines (38 loc) · 1.41 KB
/
Copy pathpublish.yml
File metadata and controls
41 lines (38 loc) · 1.41 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
name: Publish Release to Play Store
env:
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:MaxMetaspaceSize=1g" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false
CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 2 --no-daemon
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- id: fetchLatestRelease
uses: pozetroninc/github-action-get-latest-release@master
with:
repository: ${{ github.repository }}
excludes: prerelease, draft
token: ${{ secrets.GITHUB_TOKEN }}
- name: Print Latest Release
run: echo ${{ steps.fetchLatestRelease.outputs.release }}
- name: Prepare Release Artifact
uses: dsaltares/fetch-gh-release-asset@master
with:
file: 'app-release.aab'
- name: Prepare Release mapping
uses: dsaltares/fetch-gh-release-asset@master
with:
file: 'mapping.txt'
- name: List files
run: ls -l
- name: Upload Android Release to Play Store
uses: r0adkll/upload-google-play@v1.1.3
with:
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
packageName: me.rosuh.easywatermark
releaseFiles: 'app-release.aab'
track: production
mappingFile: 'mapping.txt'