-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (39 loc) · 1.19 KB
/
release.yml
File metadata and controls
42 lines (39 loc) · 1.19 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
42
name: Release
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 11
- name: Build the app
run: ./gradlew assemble
- name: Sign app APK
uses: r0adkll/sign-android-release@v1
id: sign_app
with:
releaseDirectory: |
app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.SIGNING_ALIAS }}
keyStorePassword: ${{ secrets.SIGNING_KEYSTORE_PW }}
keyPassword: ${{ secrets.SIGNING_KEY_PW }}
- name: Upload APK to release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
title: ${{ github.ref_name }}
automatic_release_name: ${{ github.ref_name }}
draft: ${{ !contains(github.ref, 'tags') }}
prerelease: ${{contains( github.ref_name , '-') }}
files: |
app/build/outputs/apk/release/*.apk