Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions .github/workflows/release-apk.yml
Original file line number Diff line number Diff line change
@@ -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
Loading