Nastavak rada na aplikaciji #28
This file contains hidden or 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
| name: Android Build | |
| on: | |
| push: | |
| branches-ignore: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v2 | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Add Google services JSON | |
| run: | | |
| cd app | |
| ls | |
| echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > google-services.json | |
| echo "Gotov Google services JSON" | |
| - name: Update secrets | |
| id: updateSecrets | |
| run: | | |
| echo "Updating Secrets.kt" | |
| echo '${{ secrets.SECRETS }}' > app/src/main/java/com/am/stbus/common/Secrets.kt | |
| - name: Build with Gradle | |
| run: ./gradlew buildRelease |