2021-03-25 15:07:13 +00:00
|
|
|
name: Github debug build
|
2021-03-25 15:05:38 +00:00
|
|
|
|
|
|
|
on: workflow_dispatch
|
|
|
|
# push:
|
|
|
|
# branches: [ master ]
|
|
|
|
# pull_request:
|
|
|
|
# branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: set up JDK 1.8
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 1.8
|
|
|
|
|
|
|
|
- name: Grant execute permission for gradlew
|
|
|
|
run: chmod +x gradlew
|
|
|
|
|
|
|
|
- name: Build Github debug apk
|
2021-03-26 12:20:11 +00:00
|
|
|
run: ./gradlew assembleGithubRelease --stacktrace
|
|
|
|
|
|
|
|
- name: Sign APK
|
|
|
|
uses: r0adkll/sign-android-release@v1
|
|
|
|
# ID used to access action output
|
|
|
|
id: sign_app
|
|
|
|
with:
|
|
|
|
releaseDirectory: app/github/release
|
|
|
|
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
|
|
|
|
alias: ${{ secrets.ALIAS }}
|
|
|
|
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
|
|
|
|
keyPassword: ${{ secrets.KEY_PASSWORD }}
|
2021-03-25 15:05:38 +00:00
|
|
|
|
|
|
|
# Create artifact
|
|
|
|
- name: Create apk artifact
|
2021-03-25 16:50:47 +00:00
|
|
|
uses: actions/upload-artifact@v2
|
2021-03-25 15:05:38 +00:00
|
|
|
with:
|
2021-03-26 12:20:11 +00:00
|
|
|
name: app-github-release.apk
|
|
|
|
path: ${{steps.sign_app.outputs.signedReleaseFile}}
|