Skip to content

Commit

Permalink
Replace debug with release in auto build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pilot51 committed Jan 27, 2024
1 parent b9e1152 commit 73aa6fd
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,21 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build Debug APK
id: build-debug
run: ./gradlew assembleDebug
- name: Create keystore files
run: |
echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -di > release.keystore
echo "${{ secrets.KEYSTORE_PROPERTIES }}" > keystore.properties
- name: Build
id: build
run: ./gradlew assembleRelease

- name: Automatic Releases
uses: marvinpinto/action-automatic-releases@latest
if: ${{ steps.build-debug.outcome == 'success' }}
if: ${{ steps.build.outcome == 'success' }}
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Auto build [debug]"
title: "Auto build"
files: 'app/build/outputs/apk/**/*.apk'

0 comments on commit 73aa6fd

Please sign in to comment.