mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-24 00:10:47 +00:00
Compare commits
No commits in common. "64cfb3cde1dcb2ca535c98b318617542b6c780b6" and "bef80fa14ed5037c67b8a1a40fea3265f7c40266" have entirely different histories.
64cfb3cde1
...
bef80fa14e
1 changed files with 0 additions and 28 deletions
28
.github/workflows/cd_prod.yml
vendored
28
.github/workflows/cd_prod.yml
vendored
|
@ -7,19 +7,12 @@ name: Build prod .aab & .apk
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
|
||||||
version:
|
|
||||||
description: "Version"
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
|
|
||||||
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:
|
||||||
name: Build .apk & .aab
|
|
||||||
runs-on: macos-11
|
runs-on: macos-11
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
|
||||||
|
@ -96,24 +89,3 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: m3_lightmeter_bundle
|
name: m3_lightmeter_bundle
|
||||||
path: build/app/outputs/bundle/prodRelease/app-prod-release.aab
|
path: build/app/outputs/bundle/prodRelease/app-prod-release.aab
|
||||||
|
|
||||||
update-version-in-repo:
|
|
||||||
name: Update repo version
|
|
||||||
runs-on: macos-11
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
|
|
||||||
- name: Increment build number & replace version number
|
|
||||||
run: $UPDATE_VERSION_SCRIPT
|
|
||||||
|
|
||||||
- name: Commit and push changes
|
|
||||||
run: |
|
|
||||||
git config --global user.name "vodemn"
|
|
||||||
git config --global user.email "vadim.turko@gmail.com"
|
|
||||||
|
|
||||||
git add -A
|
|
||||||
git commit -m "Version bump"
|
|
||||||
git push
|
|
||||||
|
|
Loading…
Reference in a new issue