Merge branch 'master' into release #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
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/[email protected] | |
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 |