Update gemini.yml #12
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 and Release | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| jobs: | |
| build_and_release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@v3 | |
| with: | |
| gradle-version: '7.5' | |
| - name: Build with Gradle | |
| run: gradle :app:assembleDebug --stacktrace | |
| - name: Create Release | |
| id: create_release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: build-${{ github.run_number }} | |
| release_name: App Build ${{ github.run_number }} | |
| body: | | |
| Automated release of the Android app. | |
| draft: false | |
| prerelease: true | |
| - name: Upload Release APK | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./app/build/outputs/apk/debug/app-debug.apk | |
| asset_name: jules-presentation-app.apk | |
| asset_content_type: application/vnd.android.package-archive |