Skip to content

gh(action): on push

gh(action): on push #1

# This action will be executed when a tag is created and uploaded.
# More information: https://github.com/davidcopano/github-actions-docs
name: Generate Android APK and publish release on Github
on:
push:
branches:
- main
jobs:
prepare_tools:
name: Prepare tools to generate the APK
runs-on: ubuntu-latest
steps:
- name: Get code from the current repository
uses: actions/checkout@v4
- name: Install Java
uses: actions/setup-java@v4
with:
java-version: 17
- name: Install Android SDK
uses: android-actions/setup-android@v3
- name: Install Node.js
uses: actions/setup-node@v4
- name: Install Ionic
run: npm install -g @ionic/cli
- name: Install app dependencies
run: yarn
- name: Build Ionic assets
run: yarn build
- name: Capacitor sync
run: npx cap sync
- name: Decode Keystore File
id: android_keystore
uses: timheuer/base64-to-file@v1
with:
fileName: release-scango.jks
encodedString: ${{ secrets.ANDROID_KEYSTORE_FILE }}
- name: Decode Firebase Google services
uses: timheuer/base64-to-file@v1
id: firebase_google_services
with:
fileName: google-services.json
encodedString: ${{ secrets.FIREBASE_GOOGLE_SERVICES }}
- name: Build Android
id: android_build
run: cd android && ./gradlew assembleRelease
env:
- KEYSTORE_KEY_ALIAS: ${{ secrets.KEYSTORE_KEY_ALIAS }}

Check failure on line 60 in .github/workflows/realease-android-build.yml

View workflow run for this annotation

GitHub Actions / Generate Android APK and publish release on Github

Invalid workflow file

The workflow is not valid. .github/workflows/realease-android-build.yml (Line: 60, Col: 11): A sequence was not expected
- KEYSTORE_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
- KEYSTORE_PATH: ${{ steps.android_keystore.outputs.filePath }}
- KEYSTORE_STORE_PASSWORD: ${{ secrets.KEYSTORE_STORE_PASSWORD }}
- name: Upload generated and signed APK as artifact to Github
uses: actions/upload-artifact@v4
with:
name: app-release
path: android/app/build/outputs/apk/release/app-release-signed.apk