Skip to content

Commit

Permalink
Fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat committed Mar 12, 2024
1 parent fe50619 commit 4e5b1de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
name: "Build: Android"
on:
workflow_dispatch:
keystore:
type: string
description: base64 keystore
workflow_call:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASS: ${{ secrets.KEY_PASS }}
KEY_STORE_PASS: ${{ secrets.KEY_STORE_PASS }}
KEYSTORE: ${{ secrets.KEYSTORE }}

jobs:
build-android:
runs-on: ubuntu-latest
Expand All @@ -41,12 +31,16 @@ jobs:
with:
fileName: 'keystore.jks'
fileDir: './'
encodedString: ${{ env.KEYSTORE }}
encodedString: ${{ secrets.KEYSTORE }}

- name: 'Build Android Release'
run: |
cd android
./gradlew assembleRelease
env:
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASS: ${{ secrets.KEY_PASS }}
KEY_STORE_PASS: ${{ secrets.KEY_STORE_PASS }}

- name: 'Check for non-FOSS libraries'
run: |
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ on:
jobs:
android-build:
uses: KoalaSat/nostros/.github/workflows/android-build.yml@main
env:
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASS: ${{ secrets.KEY_PASS }}
KEY_STORE_PASS: ${{ secrets.KEY_STORE_PASS }}
KEYSTORE: ${{ secrets.KEYSTORE }}
secrets: inherit
release:
needs: [android-build]
runs-on: ubuntu-latest
Expand Down

0 comments on commit 4e5b1de

Please sign in to comment.