diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c83f3635..48f6df96 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,9 @@ on: release: types: - created +defaults: + run: + working-directory: packages/flutter_widgets jobs: build_and_deploy_ios: @@ -17,7 +20,7 @@ jobs: - uses: actions/checkout@v2 - name: Install RubyGems run: | - cd packages/flutter_widgets/example/ios + cd example/ios bundle install - uses: subosito/flutter-action@v1.4.0 with: @@ -26,7 +29,7 @@ jobs: run: npm install -g firebase-tools - name: Flutter setup run: | - cd packages/flutter_widgets/example + cd example flutter pub get - name: Build and release env: @@ -34,7 +37,7 @@ jobs: MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }} FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} run: | - cd packages/flutter_widgets/example + cd example flutter build ios --release --no-codesign cd ios bundle exec fastlane deploy_to_firebase @@ -49,11 +52,11 @@ jobs: with: channel: 'stable' - run: | - cd packages/flutter_widgets/example + cd example flutter pub get - name: Build run: | - cd packages/flutter_widgets/example + cd example flutter build apk - name: Deploy uses: wzieba/Firebase-Distribution-Github-Action@v1.2.1 @@ -61,4 +64,4 @@ jobs: appId: ${{secrets.FIREBASE_ANDROID_APPID}} token: ${{secrets.FIREBASE_TOKEN}} groups: stream-testers - file: packages/flutter_widgets/example/build/app/outputs/apk/release/app-release.apk \ No newline at end of file + file: example/build/app/outputs/apk/release/app-release.apk \ No newline at end of file