refactored api_interceptor data-parsing logic #21
This file contains 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: Dart | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
# Set up Java 17 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" # This is an OpenJDK distribution | |
java-version: "17" | |
# Set up Flutter | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version: 3.24.2 | |
- run: flutter --version | |
- run: flutter pub get | |
# Build APK for debugging | |
- run: flutter build apk --debug --split-per-abi -t lib/main.dart | |
- run: flutter build appbundle | |
# Push the release | |
- name: Push to Releases | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "build/app/outputs/apk/debug/*" | |
tag: v1.0.${{ github.run_number }} | |
token: ${{ secrets.TOKEN }} |