Skip to content

Commit 658cc83

Browse files
Konfig fuer GH Actions dazu
1 parent 4d6cc5f commit 658cc83

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/gradle.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: APK-Datei bauen
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
job-apk-bauen:
10+
name: Debug-APK bauen
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Setup JDK
16+
uses: actions/setup-java@v4
17+
with:
18+
java-version: '19'
19+
distribution: 'temurin'
20+
- name: Gradle aufrufen
21+
run: bash ./gradlew clean assembleDebug --stacktrace
22+
- name: Aktuellen Zeitstempel in Umgebungsvariable kopieren
23+
run: echo "zeitstempel=$(date +'%Y-%m-%d_%H-%M')" >> $GITHUB_ENV
24+
- name: APK-Datei hochladen
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: ZweiActivities_AndroidInstallFile-${{ env.zeitstempel }}
28+
path: app/build/outputs/apk/debug/app-debug.apk
29+
if-no-files-found: error
30+
retention-days: 2

0 commit comments

Comments
 (0)