-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.06 KB
/
manual-apk.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Assemble APK
on:
workflow_dispatch:
inputs:
buildtype:
description: 'Buildtype (debug, release)'
default: 'debug'
required: true
jobs:
Assembly:
runs-on: ubuntu-latest
steps:
- name: Prepare Debug Environment
if: ${{ github.event.inputs.buildtype == 'debug' }}
run: |
echo "BUILD_TYPE_MC=Debug" >>$GITHUB_ENV
echo "BUILD_TYPE_LC=debug" >>$GITHUB_ENV
- name: Prepare Release Environment
if: ${{ github.event.inputs.buildtype == 'release' }}
run: |
echo "BUILD_TYPE_MC=Release" >>$GITHUB_ENV
echo "BUILD_TYPE_LC=release" >>$GITHUB_ENV
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
- name: Run Gradle
run: gradle --warning-mode=all assemble${{ env.BUILD_TYPE_MC }}
- uses: actions/upload-artifact@v2
with:
name: ${{ env.BUILD_TYPE_MC }}.apk
path: build/outputs/apk/${{ env.BUILD_TYPE_LC }}/helm-${{ env.BUILD_TYPE_LC }}.apk