updated error log #42
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: Build APK | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4.1.0 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v3.13.0 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Make gradlew executable | |
| run: chmod +x ./gradlew | |
| - name: Create Google Services JSON File | |
| env: | |
| GOOGLE_SERVICES_JSON: ${{ secrets.TIB_KEYBOARD_GOOGLE_SERVICES_JSON }} | |
| run: echo $GOOGLE_SERVICES_JSON | base64 -di > app/google-services.json | |
| - name: Build APK | |
| run: ./gradlew build | |
| - name: Upload APK (for PR and push events) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: app-debug | |
| path: app/build/outputs/apk/debug/app-debug.apk | |
| # Only create release for pushes to main branch (not PRs) | |
| - name: Generate tag name | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| id: tag | |
| run: | | |
| echo "tag_name=v$(date +'%Y.%m.%d')-$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_OUTPUT | |
| - name: Create Release | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| tag_name: ${{ steps.tag.outputs.tag_name }} | |
| name: Release ${{ steps.tag.outputs.tag_name }} | |
| body: | | |
| Auto-generated release from commit ${{ github.sha }} | |
| ## Changes | |
| - Built from latest main branch | |
| - APK generated and attached | |
| files: | | |
| app/build/outputs/apk/debug/app-debug.apk | |
| draft: false | |
| prerelease: false | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |