changes in github workflow #147
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: Android build & release | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
flutter_test: | |
name: Flutter Test and Analyse | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Repository | |
uses: actions/checkout@v4 | |
- name: Setting up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: microsoft | |
java-version: '21' | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- run: flutter --version | |
- run: flutter pub get | |
- run: flutter pub upgrade | |
- run: flutter build apk --debug --dart-define SERVER-URL=${{ secrets.SERVER_URL }} --dart-define IRBS-SERVER-URL=${{ secrets.IRBS_SERVER_URL }} --dart-define SECURITY-KEY=${{ secrets.SECURITY_KEY }} --dart-define GMAP_KEY=${{ secrets.GMAP_KEY }} --dart-define GITHUB_ISSUE_TOKEN=${{ secrets.GIT_TOKEN }} --dart-define GATELOG-WEBSOCKET-URL=${{ secrets.GATELOG_WEBSOCKET_URL }} --dart-define GATELOG-SERVER-URL=${{ secrets.GATELOG_SERVER_URL }} --dart-define MODERATION-SERVER-URL=${{ secrets.MODERATION_SERVER_URL }} --no-tree-shake-icons | |
- name: Create Release | |
uses: actions/upload-artifact@v1 | |
with: | |
path: "build/app/outputs/flutter-apk/app-debug.apk" | |
name: v1.0.${{ github.run_number }} | |