Compare commits

...

9 commits

Author SHA1 Message Date
vodemn
5f170b313b Version bump 2023-06-27 08:52:18 +00:00
Vadim
20127d7250 Merge branch 'feature/ML-61' of https://github.com/vodemn/m3_lightmeter into feature/ML-61 2023-06-27 10:24:34 +02:00
Vadim
6067686544 extended artifacts path 2023-06-27 10:24:01 +02:00
vodemn
d03c6d3e2a Version bump 2023-06-27 08:06:02 +00:00
Vadim
1074daca80 download artifacts 2023-06-27 09:54:02 +02:00
vodemn
03744cc61c Version bump 2023-06-27 07:23:16 +00:00
Vadim
30661a957b reverted pubspec version 2023-06-27 09:22:28 +02:00
Vadim
6f87397ae7 returned to macos-11 runner 2023-06-27 09:18:38 +02:00
Vadim
fc769f301b typo 2023-06-27 09:17:16 +02:00
2 changed files with 16 additions and 3 deletions

View file

@ -15,7 +15,6 @@ 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:
@ -67,6 +66,9 @@ 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:
@ -106,7 +108,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: |
@ -127,8 +129,19 @@ 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: "m3_lightmeter_apk, m3_lightmeter_bundle" artifacts: "/home/runner/work/m3_lightmeter/m3_lightmeter/m3_lightmeter_apk, /home/runner/work/m3_lightmeter/m3_lightmeter/m3_lightmeter_bundle"
skipIfReleaseExists: true skipIfReleaseExists: true
tag: "v${{ github.event.inputs.version }}" tag: "v${{ github.event.inputs.version }}"

Binary file not shown.