Skip to content

Commit

Permalink
Update android-ci-cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MRfantastic3DGamer authored Dec 23, 2024
1 parent 3e3189f commit 1107b3a
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/android-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,39 @@ on:
pull_request:
branches:
- master

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout sources
uses: actions/checkout@v4



- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
uses: gradle/actions/setup-gradle@v4

# Grant execute permissions for Gradle wrapper
- name: Grant execute permission for Gradle wrapper
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build

- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v4



# Build the release APK
- name: Build Release APK
run: ./gradlew assembleRelease

# Upload the APK as an artifact
- name: Upload APK as artifact
uses: actions/upload-artifact@v3
with:
name: app-release-apk
path: app/build/outputs/apk/release/app-release.apk

- name: Commit files
run: |
echo ${{ github.ref }}
Expand Down

0 comments on commit 1107b3a

Please sign in to comment.