Make a debug build action
This commit is contained in:
parent
f4d1c27cde
commit
b70d70e82d
51
.github/workflows/android-debug.yml
vendored
Normal file
51
.github/workflows/android-debug.yml
vendored
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
name: Android Pull Request & Master CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Run Unit Tests
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: set up JDK 1.8
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 1.8
|
||||||
|
- name: Unit tests
|
||||||
|
run: bash ./gradlew test --stacktrace
|
||||||
|
|
||||||
|
apk:
|
||||||
|
name: Generate APK
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: set up JDK 1.8
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 1.8
|
||||||
|
- name: Build debug APK
|
||||||
|
run: bash ./gradlew assembleRelease --stacktrace
|
||||||
|
- name: Sign Android release
|
||||||
|
uses: r0adkll/sign-android-release@v1
|
||||||
|
with:
|
||||||
|
# The directory to find your release to sign
|
||||||
|
releaseDirectory: app/build/outputs/apk/release
|
||||||
|
# The key used to sign your release in base64 encoded format
|
||||||
|
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
|
||||||
|
# The key alias
|
||||||
|
alias: ${{ secrets.ALIAS }}
|
||||||
|
# The password to the keystore
|
||||||
|
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
|
||||||
|
# The password for the key
|
||||||
|
keyPassword: ${{ secrets.KEY_PASSWORD }}
|
||||||
|
- name: Upload APK
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
|
with:
|
||||||
|
name: TachiyomiSY-${{ github.sha }}
|
||||||
|
path: $SIGNED_RELEASE_FILE
|
Loading…
x
Reference in New Issue
Block a user