Bump com.android.tools.build:gradle from 8.2.0 to 8.2.1 #56
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Build | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- run: | | |
git clone https://github.com/UnifiedPush/android-example example | |
cd example | |
sed -i -e '/delToDevFcm/d' -e 's-//toDevFcm//--' app/build.gradle settings.gradle | |
sed -i -e 's-//toDevFossFcm//--' -e 's/org.unifiedpush.android.embedded_fcm_distributor/org.unifiedpush.android.foss_embedded_fcm_distributor/' app/src/fcm/java/org/unifiedpush/example/EmbeddedDistributor.kt | |
./gradlew assembleFcm --stacktrace | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: example | |
path: example/app/build/outputs/apk/fcm/debug/app-fcm-debug.apk | |
- if: startsWith(github.ref, 'refs/tags/') | |
run: | | |
cd example/app/build/outputs/apk/fcm/release/ | |
echo $RELEASE_KEY | base64 -d > release-key.jks | |
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore release-key.jks -storepass $STOREPASS -keypass $KEYPASS app-fcm-release-unsigned.apk unifiedpush | |
jarsigner -verify app-fcm-release-unsigned.apk | |
sudo apt-get install zipalign -y | |
zipalign -v 4 app-fcm-release-unsigned.apk UP-Example-Fcm.apk | |
env: | |
RELEASE_KEY: ${{ secrets.RELEASE_KEY }} | |
KEYPASS: ${{ secrets.KEYPASS }} | |
STOREPASS: ${{ secrets.STOREPASS }} | |
- if: startsWith(github.ref, 'refs/tags/') | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: example/app/build/outputs/apk/fcm/release/UP-Example-Fcm.apk | |
tag: ${{ github.ref }} | |
overwrite: true |