Compare commits

..

No commits in common. "5f170b313b03264ff48d7d563cb0c2aed677257e" and "6994d5fc58f2fdca9a58df6e2a47bbfbffed25d5" have entirely different histories.

2 changed files with 3 additions and 16 deletions

View file

@ -15,6 +15,7 @@ on:
env: env:
BUILD_ARGS: --release --flavor prod --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_prod.dart BUILD_ARGS: --release --flavor prod --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_prod.dart
UPDATE_VERSION_SCRIPT: perl -i -pe 's/^(version:\s+)(\d+\.\d+\.\d+)(\+)(\d+)$/$1.${{ github.event.inputs.version }}.$3.($4+1)/e' pubspec.yaml
jobs: jobs:
build: build:
@ -66,9 +67,6 @@ jobs:
echo -n "$FIREBASE_OPTIONS" | base64 --decode --output $FIREBASE_OPTIONS_PATH echo -n "$FIREBASE_OPTIONS" | base64 --decode --output $FIREBASE_OPTIONS_PATH
cp $FIREBASE_OPTIONS_PATH ./lib 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
- name: Install Flutter - name: Install Flutter
uses: subosito/flutter-action@v2 uses: subosito/flutter-action@v2
with: with:
@ -108,7 +106,7 @@ jobs:
submodules: recursive submodules: recursive
- name: Increment build number & replace version number - 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 run: perl -i -pe 's/^(version:\s+)(\d+\.\d+\.\d+)(\+)(\d+)$/$1.${{ github.event.inputs.version }}.$3.($4+1)/e' pubspec.yaml
- name: Commit and push changes - name: Commit and push changes
run: | run: |
@ -129,19 +127,8 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
submodules: recursive submodules: recursive
- name: Download apk
uses: actions/download-artifact@v3
with:
name: m3_lightmeter_apk
- name: Download app bundle
uses: actions/download-artifact@v3
with:
name: m3_lightmeter_bundle
- uses: ncipollo/release-action@v1 - uses: ncipollo/release-action@v1
with: with:
artifacts: "/home/runner/work/m3_lightmeter/m3_lightmeter/m3_lightmeter_apk, /home/runner/work/m3_lightmeter/m3_lightmeter/m3_lightmeter_bundle" artifacts: "m3_lightmeter_apk, m3_lightmeter_bundle"
skipIfReleaseExists: true skipIfReleaseExists: true
tag: "v${{ github.event.inputs.version }}" tag: "v${{ github.event.inputs.version }}"

Binary file not shown.