mirror of
https://github.com/ActivityLauncher/ActivityLauncher.git
synced 2026-08-31 10:44:29 +00:00
chore: build with GitHub actions
This commit is contained in:
parent
c245b49fff
commit
0bef8138b6
2 changed files with 57 additions and 0 deletions
33
.github/workflows/android-release.yml
vendored
Normal file
33
.github/workflows/android-release.yml
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
name: Release Build
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- name: Prepare Android keystore
|
||||
run: echo ${{ secrects.encodedKeystore }} | base64 --decode >> ${HOME}/keystore.jks
|
||||
- name: Download dependencies
|
||||
run: ./gradlew androidDependencies
|
||||
- name: Build release
|
||||
run: ./gradlew assembleRelease
|
||||
env:
|
||||
KEYSTORE: ${{ HOME }}/keystore.jks
|
||||
KEYSTORE_PASSWORD: ${{ secrets.keystorePassword }}
|
||||
KEY_ALIAS: ${{ secrets.keyAlias }}
|
||||
KEY_PASSWORD: ${{ secrets.keyPassword }}
|
||||
- name: Upload release apk
|
||||
uses: actions/upload-artifact@v1.0.0
|
||||
with:
|
||||
name: Release
|
||||
path: ActivityLauncherApp/build/outputs/apk/release
|
||||
24
.github/workflows/android.yml
vendored
Normal file
24
.github/workflows/android.yml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
name: Debug Build
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- name: Download dependencies
|
||||
run: ./gradlew androidDependencies
|
||||
- name: Build debug
|
||||
run: ./gradlew assembleDebug
|
||||
- name: Upload debug apk
|
||||
uses: actions/upload-artifact@v1.0.0
|
||||
with:
|
||||
name: Debug
|
||||
path: ActivityLauncherApp/build/outputs/apk/debug
|
||||
Loading…
Add table
Add a link
Reference in a new issue