diff --git a/.github/workflows/release_staging.yml b/.github/workflows/release_staging.yml new file mode 100644 index 0000000..b7648dc --- /dev/null +++ b/.github/workflows/release_staging.yml @@ -0,0 +1,62 @@ +# This is a lint and test workflow for Flutter CI + +name: Relase (staging ) + +# on: +# push: +# branches: +# - develop +# pull_request: +# branches: +# - develop +on: + pull_request: +jobs: + # build_ios: + # name: Build Flutter (ios) + # runs-on: macOS-latest + # steps: + # # Setup Java environment in order to build the Android app. + # - uses: actions/checkout@v2.3.2 + # - uses: actions/setup-java@v1 + # with: + # java-version: '12.x' + # + # # Setup the Flutter environment. + # - uses: subosito/flutter-action@v1 + # with: + # channel: 'stable' # 'dev', 'alpha', default to: 'stable' + # # flutter-version: '1.12.x' # uncomment this to specify the exact version of Flutter + # + # - name: Get Flutter dependencies. + # run: flutter pub get + # + # - name: Build app + # run: flutter build ios --flavor staging -t lib/main-staging.dart --no-codesign + # + # - name: Upload iPA + # uses: actions/upload-artifact@master + # with: + # name: ios-build + # path: build/ios/iphoneos + deploy_ios: + name: Upload to Firebase App Distribution + # needs: [build_ios] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Download Artifact + uses: actions/download-artifact@v2.0.9 + with: + name: ios-build + - name: Upload IPA + uses: wzieba/Firebase-Distribution-Github-Action@v1.3.2 + with: + appId: ${{secrets.FIREBASE_IOS_APP_ID}} + token: ${{secrets.FIREBASE_TOKEN}} + group: testers + file: Runner.ipa