mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 23:10:40 +00:00
Fixed rm
This commit is contained in:
parent
c69f196e1c
commit
52d88a4e58
2 changed files with 6 additions and 4 deletions
5
.github/workflows/cd_dev.yml
vendored
5
.github/workflows/cd_dev.yml
vendored
|
@ -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
|
||||
|
|
5
.github/workflows/cd_prod.yml
vendored
5
.github/workflows/cd_prod.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue