Android CI #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 CI | |
| on: | |
| # Permite rodar o build manualmente clicando no botão "Run workflow" | |
| workflow_dispatch: | |
| # Só roda automático se houver mudanças reais no código da branch main | |
| push: | |
| branches: [ "main" ] | |
| paths-ignore: | |
| - '**.md' | |
| - '.gitignore' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Permitir execução do Gradle | |
| run: chmod +x ./gradlew | |
| - name: Gerar APK de Teste | |
| run: ./gradlew assembleDebug | |
| - name: Salvar APK para Download | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Notes-Z-App | |
| path: app/build/outputs/apk/debug/*.apk |