diff --git a/.github/workflows/cd_dev.yml b/.github/workflows/cd_dev.yml index 13fe25a..b5cc845 100644 --- a/.github/workflows/cd_dev.yml +++ b/.github/workflows/cd_dev.yml @@ -63,9 +63,10 @@ jobs: env: FIREBASE_OPTIONS: ${{ secrets.FIREBASE_OPTIONS }} run: | - FIREBASE_OPTIONS_PATH=$RUNNER_TEMP/lib/firebase_options.dart - rm $FIREBASE_OPTIONS_PATH + rm .lib/firebase_options.dart + FIREBASE_OPTIONS_PATH=$RUNNER_TEMP/firebase_options.dart echo -n "$FIREBASE_OPTIONS" | base64 --decode --output $FIREBASE_OPTIONS_PATH + cp $FIREBASE_OPTIONS_PATH ./lib - name: Install Flutter uses: subosito/flutter-action@v2 diff --git a/.github/workflows/cd_prod.yml b/.github/workflows/cd_prod.yml index 5a2e425..29cdfdc 100644 --- a/.github/workflows/cd_prod.yml +++ b/.github/workflows/cd_prod.yml @@ -62,9 +62,10 @@ jobs: env: FIREBASE_OPTIONS: ${{ secrets.FIREBASE_OPTIONS }} run: | - FIREBASE_OPTIONS_PATH=$RUNNER_TEMP/lib/firebase_options.dart - rm $FIREBASE_OPTIONS_PATH + rm .lib/firebase_options.dart + FIREBASE_OPTIONS_PATH=$RUNNER_TEMP/firebase_options.dart echo -n "$FIREBASE_OPTIONS" | base64 --decode --output $FIREBASE_OPTIONS_PATH + cp $FIREBASE_OPTIONS_PATH ./lib - name: Increment build number & replace version number run: perl -i -pe 's/^(version:\s+)(\d+\.\d+\.\d+)(\+)(\d+)$/$1."${{ github.event.inputs.version }}".$3.($4+1)/e' pubspec.yaml