Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hajoha committed Jun 4, 2024
1 parent 9eb4ae3 commit b8e1dd6
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [ 'main' ]

jobs:
prepare:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Branch ${{ github.ref }}
Expand All @@ -25,22 +25,14 @@ jobs:
RELEASE_KEYSTORE_ALIAS: ${{ secrets.KEYALIAS }}
RELEASE_KEY_PASSWORD: ${{ secrets.KEYPASSWORD }}
run: |
echo -n "$ENCODED_STRING" | wc -c
echo -n "$ENCODED_STRING" | base64 -d > OpenMobileNetworkToolkit-key.jks
mv OpenMobileNetworkToolkit-key.jks app
echo -n "$ENCODED_STRING" | base64 -d > app/OpenMobileNetworkToolkit-key.jks
mkdir android
touch android/key.properties
echo "storePassword=$RELEASE_KEYSTORE_PASSWORD" > android/key.properties
echo "keyPassword=$RELEASE_KEY_PASSWORD" >> android/key.properties
echo "keyAlias=$RELEASE_KEYSTORE_ALIAS" >> android/key.properties
echo "storeFile=OpenMobileNetworkToolkit-key.jks" >> android/key.properties
ls -la app
ls -la android
build:
runs-on: ubuntu-latest
needs: prepare
steps:
- name: Setup Java
uses: actions/setup-java@v4
with:
Expand All @@ -63,13 +55,6 @@ jobs:
RELEASE_KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
RELEASE_KEY_PASSWORD: ${{ secrets.KEY_PW }}
run: ./gradlew bundleRelease --stacktrace
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: Get release file aab path
id: releaseAab
run: echo "aabfile=$(find app/build/outputs/bundle/release/*.aab)" >> $GITHUB_OUTPUT

- name: Get release file apk path
id: releaseApk
Expand Down

0 comments on commit b8e1dd6

Please sign in to comment.