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:
|
2020-05-24 19:54:26 +00:00
|
|
|
- dev
|
2020-05-01 09:05:36 +00:00
|
|
|
pull_request:
|
|
|
|
branches:
|
2020-05-24 19:54:26 +00:00
|
|
|
- dev
|
2020-05-20 10:30:21 +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
|
|
|
|
2020-05-20 10:30:21 +00:00
|
|
|
- name: Upload to GitHub
|
2020-05-01 07:35:23 +00:00
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: 'Vanced-Manager'
|
2020-07-01 09:50:19 +00:00
|
|
|
path: ${{ steps.sign-app.outputs.signedReleaseFile }}
|
|
|
|
|
|
|
|
- name: Upload to Discord
|
2020-07-01 09:59:37 +00:00
|
|
|
uses: sinshutu/upload-to-discord@master
|
2020-07-01 09:50:19 +00:00
|
|
|
env:
|
|
|
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
|
|
|
with:
|
|
|
|
args: ${{ steps.sign-app.outputs.signedReleaseFile }}
|