Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added SonDal-Android-Projesi.zip
Binary file not shown.
36 changes: 36 additions & 0 deletions build-apk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build APK

on:
push:
branches: [ main, master ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Unzip project (if needed)
run: |
if [ -f "SonDal-Android-Projesi.zip" ]; then
unzip -o SonDal-Android-Projesi.zip -d .
fi

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: Grant execute permission for gradlew
run: cd SonDal && chmod +x gradlew || true

- name: Build debug APK
run: cd SonDal && (test -f gradlew && ./gradlew assembleDebug || gradle assembleDebug)

- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: sondal-apk
path: SonDal/app/build/outputs/apk/debug/*.apk