From d62095d7e041505ec25632b5a88bfb8132248553 Mon Sep 17 00:00:00 2001 From: guilh Date: Sat, 13 Dec 2025 15:23:50 -0300 Subject: [PATCH 1/2] =?UTF-8?q?Atualiza=20vers=C3=A3o=20do=20aplicativo=20?= =?UTF-8?q?para=201.0.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Incrementa `versionCode` de 1 para 2. - Atualiza `versionName` de "1.0" para "1.0.2". --- app/build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 33f8152..4e4b63c 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -16,8 +16,8 @@ android { applicationId = "com.delecrode.devhub" minSdk = 30 targetSdk = 36 - versionCode = 1 - versionName = "1.0" + versionCode = 2 + versionName = "1.0.2" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } From 93402135d999f8860be0dd470161f94513c2abfa Mon Sep 17 00:00:00 2001 From: guilh Date: Sat, 13 Dec 2025 15:32:35 -0300 Subject: [PATCH 2/2] Configurado workflows de CI e adicionado pipeline de release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Renomeado arquivo de workflow `ci.yml` para `android-ci.yml`. - Adicionado novo workflow `android-release-ci.yml` disparado por tags de versão (`v*`). - Configurada etapa para gerar APK (`assembleRelease`) e criar release no GitHub com o artefato gerado. --- .github/workflows/{ci.yml => android-ci.yml} | 0 .github/workflows/android-release-ci.yml | 40 ++++++++++++++++++++ 2 files changed, 40 insertions(+) rename .github/workflows/{ci.yml => android-ci.yml} (100%) create mode 100644 .github/workflows/android-release-ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/android-ci.yml similarity index 100% rename from .github/workflows/ci.yml rename to .github/workflows/android-ci.yml diff --git a/.github/workflows/android-release-ci.yml b/.github/workflows/android-release-ci.yml new file mode 100644 index 0000000..5790b17 --- /dev/null +++ b/.github/workflows/android-release-ci.yml @@ -0,0 +1,40 @@ +name: Android Release + +on: + push: + tags: + - "v*" + +jobs: + release: + 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: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Create google-services.json + run: echo "$GOOGLE_SERVICES_JSON" > app/google-services.json + env: + GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }} + + - name: Build Release APK + run: ./gradlew assembleRelease + + - name: Create GitHub Release and Upload APK + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ github.ref_name }} + name: Release ${{ github.ref_name }} + files: app/build/outputs/apk/release/app-release.apk + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}