Browse Source

add github action

git@yoqi.me 7 months ago
parent
commit
e299919055
1 changed files with 30 additions and 0 deletions
  1. 30 0
      .github/workflows/android.yml

+ 30 - 0
.github/workflows/android.yml

@@ -0,0 +1,30 @@
+name: Android CI
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v2
+
+    - name: set up JDK 1.8
+      uses: actions/setup-java@v1
+      with:
+        java-version: 1.8
+        
+    - name: Build Debug APK
+      run: ./gradlew assembleDebug
+
+    # - name: Releasing using Hub
+    #   uses: ShaunLWM/action-release-debugapk@master
+    #   env:
+    #     GITHUB_TOKEN: ${{secrets.TOKEN}}
+    #     APP_FOLDER: app
+    #     RELEASE_TITLE: Album