From 5f9135cc6cfd1dc06ea22300aa8a4c5bf6593190 Mon Sep 17 00:00:00 2001 From: Vagabond Date: Thu, 27 Aug 2026 19:27:49 +0200 Subject: [PATCH] ci: release y APK por tag --- .github/workflows/release-apk.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release-apk.yml b/.github/workflows/release-apk.yml index c5bae03..cddc13d 100644 --- a/.github/workflows/release-apk.yml +++ b/.github/workflows/release-apk.yml @@ -1,34 +1,28 @@ name: Release APK - -# Al publicar un Release, compila la APK y la adjunta al propio Release. on: - release: - types: [ published ] + push: + tags: ['v*'] workflow_dispatch: - permissions: contents: write - jobs: apk: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 - with: - distribution: temurin - java-version: '17' + with: { distribution: temurin, java-version: '17' } - uses: subosito/flutter-action@v2 - with: - channel: stable - cache: true + with: { channel: stable, cache: true } - name: Dependencias working-directory: oposapp run: flutter pub get - name: Build APK (release) working-directory: oposapp run: flutter build apk --release - - name: Adjuntar APK al Release + - name: Crear Release con la APK + if: startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v2 with: files: oposapp/build/app/outputs/flutter-apk/app-release.apk + generate_release_notes: true