-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (37 loc) · 1.05 KB
/
github-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
42
43
44
45
46
name: Create a GitHub Release
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }} - ${{ github.ref }}
cancel-in-progress: true
jobs:
android-release:
if: github.repository == 'etonotieno/GoCart'
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v3
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Grant gradlew permission
run: chmod +x ./gradlew
- name: Build app
run: ./gradlew :android:assembleRelease
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
android/build/outputs/apk/release/*.apk
tag_name: gocart-release
generate_release_notes: true
token: ${{ secrets.GITHUB_TOKEN }}