Skip to content

Commit

Permalink
changes in github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hardikroongta8 committed Aug 21, 2024
1 parent eb374e4 commit c8b34c9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ jobs:
- 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@v4
uses: ncipollo/release-action@v1
with:
path: "build/app/outputs/flutter-apk/app-debug.apk"
name: v1.0.${{ github.run_number }}
artifacts: "build/app/outputs/flutter-apk/app-debug.apk"
tag: v1.0.${{ github.run_number }}
token: ${{ secrets.GIT_TOKEN }}

20 changes: 12 additions & 8 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,23 @@ name: Pull Request build test
on:
pull_request:
branches: [ main ]

jobs:
flutter_test:
name: Run flutter test and analyze
name: Run Flutter Test and Analyse
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
- 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"
channel: stable
- run: flutter --version
- run: flutter pub get
- run: flutter pub upgrade
Expand Down

0 comments on commit c8b34c9

Please sign in to comment.