Skip to content

Merge pull request #28 from swciitg/dev #27

Merge pull request #28 from swciitg/dev

Merge pull request #28 from swciitg/dev #27

Workflow file for this run

name: Android build & release
on:
push:
branches: [ main ]
jobs:
flutter_test:
name: Run flutter test and analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# - uses: actions/setup-java@v1
# with:
# java-version: "12.x"
- uses: subosito/flutter-action@v2.4.0
with:
channel: "stable"
- run: flutter --version
- run: flutter pub get
- run: flutter pub upgrade
- run: flutter build apk --debug --no-tree-shake-icons --debug --dart-define SERVER-URL="https://swc.iitg.ac.in/onestop/api/v3/" --dart-define SECURITY-KEY=${{ secrets.SECURITY_KEY }} --dart-define GMAP_KEY=${{ secrets.GMAP_KEY }} --dart-define GITHUB_ISSUE_TOKEN=${{ secrets.GIT_TOKEN }}
- name: Create Release
uses: ncipollo/release-action@v1.10.0
with:
artifacts: "build/app/outputs/flutter-apk/app-debug.apk"
tag: v1.0.${{ github.run_number }}
token: ${{ secrets.TOKEN }}