Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APK Build on CI #55

Merged
merged 7 commits into from
Oct 18, 2024
Merged
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
40 changes: 40 additions & 0 deletions .github/workflows/AndroidBuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: AndroidBuild

on:
pull_request:
branches: [ main ]
push:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4.1.0

- name: Set up JDK 11
uses: actions/setup-java@v3.13.0
with:
distribution: 'adopt'
java-version: '17'

- name: Grant execute permission for gradlew
run: |
chmod +x ./gradlew

- name: Build with Gradle
run: ./gradlew build

- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.3
with:
name: dsTemplate.apk
path: app/build/outputs/apk/debug/app-debug.apk

- name: Decode Keystore
run: echo "${{ secrets.KEYSTORE }}" | base64 --decode > /tmp/keystore.jks

- name: Build Release
run: ./gradlew assembleDebug
Loading