mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
Compare commits
3 commits
738460b7bf
...
cd2f113448
Author | SHA1 | Date | |
---|---|---|---|
|
cd2f113448 | ||
|
d63f14125c | ||
|
05c7fbb163 |
1 changed files with 11 additions and 5 deletions
16
.github/workflows/create_release.yml
vendored
16
.github/workflows/create_release.yml
vendored
|
@ -23,7 +23,7 @@ on:
|
||||||
description: "Release notes"
|
description: "Release notes"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
github-release-release:
|
github-release:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Create Github release
|
description: Create Github release
|
||||||
default: true
|
default: true
|
||||||
|
@ -38,7 +38,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .apk & .aab
|
name: Build .apk & .aab
|
||||||
if: ${{ inputs.github-release-release }} || ${{ inputs.google-play-release }}
|
if: ${{ inputs.github-release }} || ${{ inputs.google-play-release }}
|
||||||
runs-on: macos-11
|
runs-on: macos-11
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
|
@ -95,18 +95,22 @@ jobs:
|
||||||
flutter pub run intl_utils:generate
|
flutter pub run intl_utils:generate
|
||||||
|
|
||||||
- name: Build apk
|
- name: Build apk
|
||||||
|
if: ${{ inputs.github-release }}
|
||||||
run: flutter build apk $BUILD_ARGS
|
run: flutter build apk $BUILD_ARGS
|
||||||
|
|
||||||
- name: Upload apk to artifacts
|
- name: Upload apk to artifacts
|
||||||
|
if: ${{ inputs.github-release }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: m3_lightmeter_apk
|
name: m3_lightmeter_apk
|
||||||
path: build/app/outputs/flutter-apk/app-prod-release.apk
|
path: build/app/outputs/flutter-apk/app-prod-release.apk
|
||||||
|
|
||||||
- name: Build appbundle
|
- name: Build appbundle
|
||||||
|
if: ${{ inputs.google-play-release }}
|
||||||
run: flutter build appbundle $BUILD_ARGS
|
run: flutter build appbundle $BUILD_ARGS
|
||||||
|
|
||||||
- name: Upload app bundle to artifacts
|
- name: Upload app bundle to artifacts
|
||||||
|
if: ${{ inputs.google-play-release }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: m3_lightmeter_bundle
|
name: m3_lightmeter_bundle
|
||||||
|
@ -129,7 +133,7 @@ jobs:
|
||||||
|
|
||||||
update-version-in-repo:
|
update-version-in-repo:
|
||||||
name: Update repo version
|
name: Update repo version
|
||||||
if: ${{ inputs.github-release-release }}
|
if: ${{ inputs.github-release }}
|
||||||
needs: [build]
|
needs: [build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -156,7 +160,7 @@ jobs:
|
||||||
|
|
||||||
create-github-release:
|
create-github-release:
|
||||||
name: Create Github release
|
name: Create Github release
|
||||||
if: ${{ inputs.github-release-release }}
|
if: ${{ inputs.github-release }}
|
||||||
needs: [build, generate-release-notes, update-version-in-repo]
|
needs: [build, generate-release-notes, update-version-in-repo]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
|
@ -210,8 +214,9 @@ jobs:
|
||||||
|
|
||||||
- name: Move release notes to a folder
|
- name: Move release notes to a folder
|
||||||
run: |
|
run: |
|
||||||
|
mv whatsnew-en-US.md whatsnew-en-US
|
||||||
mkdir whatsnew
|
mkdir whatsnew
|
||||||
mv whatsnew-en-US.md whatsnew
|
mv whatsnew-en-US whatsnew
|
||||||
|
|
||||||
- name: Create Google Play release
|
- name: Create Google Play release
|
||||||
id: create-google-play-release-step
|
id: create-google-play-release-step
|
||||||
|
@ -220,6 +225,7 @@ jobs:
|
||||||
serviceAccountJsonPlainText: ${{ secrets.GH_ACTIONS_SERVICE_ACCOUNT_JSON }}
|
serviceAccountJsonPlainText: ${{ secrets.GH_ACTIONS_SERVICE_ACCOUNT_JSON }}
|
||||||
packageName: com.vodemn.lightmeter
|
packageName: com.vodemn.lightmeter
|
||||||
releaseFiles: app-prod-release.aab
|
releaseFiles: app-prod-release.aab
|
||||||
|
releaseName: echo "$(cat pubspec.yaml)" | sed -n -r "s/^version:\s{1}(.*)[+](.*)$/700\2 (\1)/p"
|
||||||
track: production
|
track: production
|
||||||
status: draft
|
status: draft
|
||||||
debugSymbols: merged_native_libs.zip
|
debugSymbols: merged_native_libs.zip
|
||||||
|
|
Loading…
Reference in a new issue