-
Notifications
You must be signed in to change notification settings - Fork 42
41 lines (33 loc) · 887 Bytes
/
release.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
38
39
40
41
name: Release
on:
push:
tags:
- 'v*'
env:
JDK_JAVA_DISTRIBUTION: 'temurin'
JDK_JAVA_VERSION: '17'
jobs:
release:
name: Create a GitHub Release
runs-on: [ubuntu-latest]
permissions:
contents: write
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: ${{ env.JDK_JAVA_DISTRIBUTION }}
java-version: ${{ env.JDK_JAVA_VERSION }}
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build Debug APK
run: ./gradlew assembleDebug
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
name: Release ${{ github.ref }}
draft: true
prerelease: false
files: app/build/outputs/apk/debug/sample-debug.apk