2020-04-30 16:50:09 +00:00
|
|
|
name: Signed APK Builder
|
2020-04-30 15:08:52 +00:00
|
|
|
|
|
|
|
on:
|
2020-04-30 19:09:50 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-05-01 09:05:36 +00:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-04-30 16:35:05 +00:00
|
|
|
|
2020-04-30 15:08:52 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
2020-04-30 19:09:50 +00:00
|
|
|
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
|
2020-04-30 16:49:13 +00:00
|
|
|
|
2020-04-30 19:12:35 +00:00
|
|
|
- name: Grant rights
|
|
|
|
run: chmod +x ./gradlew
|
2020-04-30 16:49:13 +00:00
|
|
|
|
2020-04-30 19:12:35 +00:00
|
|
|
- name: Build project with Gradle
|
|
|
|
run: ./gradlew build
|
2020-04-30 16:49:13 +00:00
|
|
|
|
2020-04-30 19:12:35 +00:00
|
|
|
- name: Build Release APK with Gradle
|
2020-05-04 11:14:41 +00:00
|
|
|
run: ./gradlew assembleRelease
|
2020-04-30 19:09:50 +00:00
|
|
|
|
2020-05-01 07:42:31 +00:00
|
|
|
- name: Sign APK
|
|
|
|
uses: r0adkll/sign-android-release@v1
|
|
|
|
id: sign-app
|
2020-04-30 19:12:35 +00:00
|
|
|
with:
|
2020-05-04 11:14:41 +00:00
|
|
|
releaseDirectory: app/build/outputs/apk/release
|
2020-04-30 19:12:35 +00:00
|
|
|
signingKeyBase64: ${{ secrets.TOKEN }}
|
|
|
|
alias: ${{ secrets.ALIAS }}
|
|
|
|
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
|
2020-05-01 07:35:23 +00:00
|
|
|
|
|
|
|
- name: Upload file to github
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: 'Vanced-Manager'
|
|
|
|
path: ${{ steps.sign-app.outputs.signedReleaseFile }}
|
2020-05-01 09:05:36 +00:00
|
|
|
|
|
|
|
- name: Upload to Discord
|
|
|
|
uses: sinshutu/upload-to-discord@master
|
|
|
|
env:
|
|
|
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
|
|
|
with:
|
|
|
|
args: ${{ steps.sign-app.outputs.signedReleaseFile }}
|