Skip to content

Commit

Permalink
test95
Browse files Browse the repository at this point in the history
  • Loading branch information
iZakirSheikh committed Aug 23, 2023
1 parent c739e5f commit 0bba273
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 45 deletions.
51 changes: 6 additions & 45 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,49 +19,10 @@ jobs:
echo "PLACEMENT_INTERSTITIAL=${{ secrets.PLACEMENT_INTERSTITIAL }}" >> local.properties
echo "PLAY_CONSOLE_APP_RSA_KEY=${{ secrets.PLAY_CONSOLE_APP_RSA_KEY }}" >> local.properties
echo "UNITY_APP_ID=${{ secrets.UNITY_APP_ID }}" >> local.properties
- name: Configuring Java environment with Zulu JDK 17 and Gradle cache,
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: "17"
cache: gradle
- name: Granting executable permission to gradlewGenerating Unsigned Apk & Bundle
- name: Set IAP_NO_ADS
run: |
chmod +x ./gradlew
./gradlew assembleRelease
./gradlew bundleRelease
- name: Signing APK
uses: r0adkll/sign-android-release@v1
id: signed_apk
with:
releaseDirectory: app/build/outputs/apk/release/
signingKeyBase64: ${{ secrets.SIGNING_KEY_STORE_BASE64 }}
alias: ${{ secrets.SIGNING_KEY_ALIAS }}
keyStorePassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
- name: Sign AAB
uses: r0adkll/sign-android-release@v1
id: signed_aab
with:
releaseDirectory: app/build/outputs/bundle/release/
signingKeyBase64: ${{ secrets.SIGNING_KEY_STORE_BASE64 }}
alias: ${{ secrets.SIGNING_KEY_ALIAS }}
keyStorePassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
#- name: Publish signed AAB to internal track on Google Play Console
# uses: r0adkll/upload-google-play@v1
# with:
# serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
# packageName: com.prime.toolz2
# releaseFiles: ${{steps.signed_aab.outputs.signedReleaseFile}}
# track: internal
- name: Create Github Release using tag name v${{ env.GIT_TAG }} and uploading signed APK and AAB files
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ env.GIT_TAG }}
generate_release_notes: true
prerelease: false
files: |
${{steps.signed_aab.outputs.signedReleaseFile}}
${{steps.signed_apk.outputs.signedReleaseFile}}
IAP_NO_ADS=$(cat local.properties | grep IAP_NO_ADS | cut -d '=' -f 2)
echo "IAP_NO_ADS=$IAP_NO_ADS" >> $GITHUB_ENV
- name: Print IAP_NO_ADS
run: |
echo "The value of IAP_NO_ADS is $IAP_NO_ADS"
1 change: 1 addition & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,4 @@ fun ApplicationDefaultConfig.secrets() {
value = "\"" + properties.getProperty("PLAY_CONSOLE_APP_RSA_KEY", "empty") + "\""
buildConfigField("String", "PLAY_CONSOLE_APP_RSA_KEY", value)
}

0 comments on commit 0bba273

Please sign in to comment.