try using working-directory

This commit is contained in:
Salvatore Giordano
2021-01-13 12:21:04 +01:00
parent b609be4ba9
commit 2fedf8de1f
+9 -6
View File
@@ -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/[email protected]
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/[email protected]
@@ -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
file: example/build/app/outputs/apk/release/app-release.apk