Skip to content

Commit

Permalink
Konfig fuer GH Actions dazu
Browse files Browse the repository at this point in the history
  • Loading branch information
MDecker-MobileComputing committed Sep 11, 2024
1 parent 4d6cc5f commit 658cc83
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: APK-Datei bauen

on:
push:
branches:
- master

jobs:
job-apk-bauen:
name: Debug-APK bauen
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: '19'
distribution: 'temurin'
- name: Gradle aufrufen
run: bash ./gradlew clean assembleDebug --stacktrace
- name: Aktuellen Zeitstempel in Umgebungsvariable kopieren
run: echo "zeitstempel=$(date +'%Y-%m-%d_%H-%M')" >> $GITHUB_ENV
- name: APK-Datei hochladen
uses: actions/upload-artifact@v4
with:
name: ZweiActivities_AndroidInstallFile-${{ env.zeitstempel }}
path: app/build/outputs/apk/debug/app-debug.apk
if-no-files-found: error
retention-days: 2

0 comments on commit 658cc83

Please sign in to comment.