Browse Source

Update 'android-studio/.github/workflows/main.yml'

天问 5 years ago
parent
commit
3bab2b5347
1 changed files with 24 additions and 13 deletions
  1. 24 13
      android-studio/.github/workflows/main.yml

+ 24 - 13
android-studio/.github/workflows/main.yml

@@ -13,16 +13,27 @@ jobs:
     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: New Build
+      - 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: |
+          chmod +x gradlew
+          ./gradlew assembleDebug
+
+      - name: artifact
+        uses: actions/upload-artifact@v1
+        with:
+          name: artifact
+          path: build/app/outputs
+
+      - name: Releasing using Hub
+        uses: ShaunLWM/action-release-debugapk@master
+        env:
+          GITHUB_TOKEN: ${{secrets.TOKEN}}
+          APP_FOLDER: app
+          RELEASE_TITLE: Version