forked from Swordfish90/Lemuroid
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (48 loc) · 1.45 KB
/
publish.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
name: Publish
on:
push:
tags:
- "*"
jobs:
build:
name: Build APK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Create release keystore
run: |
echo "${{ secrets.RELEASE_KEYSTORE }}" > release.keystore.asc
gpg -d --passphrase "${{ secrets.RELEASE_KEYSTORE_PASSPHRASE }}" --batch release.keystore.asc > release.jks
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run Assemble Artifact
run: ./gradlew assembleFreeDynamic
- name: Upload Artifact
uses: actions/upload-artifact@v3.1.0
with:
name: apk
path: lemuroid-app/build/outputs/apk/freeDynamic/release/lemuroid-app-free-dynamic-release.apk
publish_apk:
name: Publish APK on Github
needs: [ build ]
runs-on: ubuntu-latest
steps:
- name: Download Artifact
uses: actions/download-artifact@v3.0.0
with:
name: apk
- name: Create pre-release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
title: "Pre-release"
files: lemuroid-app-free-dynamic-release.apk