Skip to content

Commit

Permalink
added package stage
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakib committed Jan 18, 2024
1 parent 44223d7 commit eb4802d
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,30 +119,30 @@ jobs:
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# package:
# needs: [static-code-analysis]
# name: Generate APK
# runs-on: ubuntu-latest
# steps:
# - name: Checkout the code
# uses: actions/checkout@v3
#
# - name: Set up JDK 17
# uses: actions/setup-java@v3
# with:
# distribution: 'adopt'
# java-version: '17'
#
# - name: Make gradlew executable
# run: chmod +x ./gradlew
#
# - name: Build debug APK
# run: ./gradlew assembleDebug --stacktrace
#
# - name: Upload APK
# uses: actions/upload-artifact@v3
# with:
# name: tip-calculator.apk
# path: app/build/outputs/apk/debug/app-debug.apk
# tag: v1.0.${{ github.run_number }}
# token: ${{ secrets.GITHUB_TOKEN }}
package:
needs: [static-code-analysis]
name: Generate APK
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3

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

- name: Make gradlew executable
run: chmod +x ./gradlew

- name: Build debug APK
run: ./gradlew assembleDebug --stacktrace

- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: tip-calculator.apk
path: app/build/outputs/apk/debug/app-debug.apk
tag: v1.0.${{ github.run_number }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit eb4802d

Please sign in to comment.