Skip to content
Browse files

Run release build in main build command

Should be faster since gradlew can run the tasks
  • Loading branch information
chrisbanes committed Feb 20, 2020
1 parent d038fde commit 63dbf7e9f5e4b76ccb33ba03a3801eef8543ff5d
Showing with 3 additions and 7 deletions.
  1. +3 −7 .github/workflows/build.yml
@@ -48,16 +48,12 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: Build debug and check
run: ./gradlew spotlessCheck app:assembleDebug app:lintDebug testDebug -Ptivi.versioncode=$BUILD_NUMBER --scan

- name: Build release
if: github.ref != 'refs/heads/master'
run: ./gradlew assembleRelease bundleRelease -Ptivi.versioncode=$BUILD_NUMBER --scan
- name: Build and check
run: ./gradlew spotlessCheck assembleDebug assembleRelease bundleRelease app:lintDebug testDebug -Ptivi.versioncode=$BUILD_NUMBER --scan

- name: Publish to Play Store
if: github.ref == 'refs/heads/master'
run: ./gradlew assembleRelease publishRelease -Ptivi.versioncode=$BUILD_NUMBER --scan
run: ./gradlew publishRelease -Ptivi.versioncode=$BUILD_NUMBER --scan

- name: Create release for tags
uses: softprops/action-gh-release@v1

0 comments on commit 63dbf7e

Please sign in to comment.
You can’t perform that action at this time.