Skip to content

Commit

Permalink
Update android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ItosEO authored Sep 9, 2023
1 parent 081c90a commit 5d8af98
Showing 1 changed file with 24 additions and 21 deletions.
45 changes: 24 additions & 21 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
name: Android Build

name: Android CI
on:
push:
tags:
- 'v*'
- 'V*'

release:
types: [published]
jobs:
build:

permissions: write-all
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew assembleRelease
- name: Upload to Release Action
uses: Shopify/[email protected]
with:
name: app-${{ github.event.release.tag_name }}.apk
path: app/build/outputs/apk/release/app-release-unsigned.apk
repo-token: ${{ github.token }}
content-type: application/zip

0 comments on commit 5d8af98

Please sign in to comment.