mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-12-04 05:10:40 +00:00
Compare commits
5 commits
f05be2ff39
...
b61ed93a88
Author | SHA1 | Date | |
---|---|---|---|
|
b61ed93a88 | ||
|
1dbcf27cf9 | ||
|
2fb3bdb970 | ||
|
257403455c | ||
|
7fa781f4ca |
4 changed files with 34 additions and 20 deletions
12
.github/workflows/build_apk.yml
vendored
12
.github/workflows/build_apk.yml
vendored
|
@ -85,12 +85,6 @@ jobs:
|
|||
if: ${{ !inputs.include-iap }}
|
||||
run: bash ./.github/scripts/stub_iap.sh
|
||||
|
||||
- name: Install Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: "stable"
|
||||
flutter-version: "3.10.0"
|
||||
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: "zulu"
|
||||
|
@ -115,6 +109,12 @@ jobs:
|
|||
- name: Increment build number & replace version number
|
||||
run: bash ./.github/scripts/increment_build_number.sh ${{ github.event.inputs.version }}
|
||||
|
||||
- name: Install Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: "stable"
|
||||
flutter-version: "3.10.0"
|
||||
|
||||
- name: Prepare flutter project
|
||||
run: |
|
||||
flutter --version
|
||||
|
|
3
.github/workflows/build_ipa.yml
vendored
3
.github/workflows/build_ipa.yml
vendored
|
@ -101,6 +101,9 @@ jobs:
|
|||
CONSTANTS: ${{inputs.stage-backend && secrets.CONSTANTS_STAGE || secrets.CONSTANTS }}
|
||||
run: bash .github/scripts/restore_from_base64.sh "${{ env.CONSTANTS }}" "lib/constants.dart"
|
||||
|
||||
- name: Increment build number & replace version number
|
||||
run: bash ./.github/scripts/increment_build_number.sh ${{ github.event.inputs.version }}
|
||||
|
||||
- name: Install Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
|
|
37
.github/workflows/create_release.yml
vendored
37
.github/workflows/create_release.yml
vendored
|
@ -38,7 +38,7 @@ jobs:
|
|||
build-android:
|
||||
name: Build Android (.${{ matrix.binary-type }})
|
||||
needs: [run-integration-tests]
|
||||
if: always() && (needs.run-integration-tests.result == 'success' || needs.run-integration-tests.result == 'skipped')
|
||||
if: ${{ always() && !failure() && !cancelled() }}
|
||||
strategy:
|
||||
matrix:
|
||||
binary-type: [apk, appbundle]
|
||||
|
@ -53,7 +53,7 @@ jobs:
|
|||
build-ios:
|
||||
name: Build iOS (.ipa)
|
||||
needs: [run-integration-tests]
|
||||
if: always() && (needs.run-integration-tests.result == 'success' || needs.run-integration-tests.result == 'skipped')
|
||||
if: ${{ always() && !failure() && !cancelled() }}
|
||||
uses: ./.github/workflows/build_ipa.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
|
@ -63,6 +63,7 @@ jobs:
|
|||
generate-release-notes:
|
||||
name: Generate release notes
|
||||
needs: [build-android, build-ios]
|
||||
if: ${{ always() && !failure() && !cancelled() }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Generate release notes
|
||||
|
@ -79,8 +80,8 @@ jobs:
|
|||
create-github-release:
|
||||
name: Create Github release
|
||||
needs: [generate-release-notes]
|
||||
runs-on: ubuntu-latest
|
||||
if: false
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
|
@ -129,8 +130,8 @@ jobs:
|
|||
create-google-play-release:
|
||||
name: Create Google Play release
|
||||
needs: [generate-release-notes]
|
||||
runs-on: ubuntu-latest
|
||||
if: false
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
|
@ -196,23 +197,33 @@ jobs:
|
|||
with:
|
||||
name: m3_lightmeter_appbundle
|
||||
|
||||
create-app-store-release:
|
||||
name: Create App Store release
|
||||
upload-to-app-store:
|
||||
name: Upload to App Store
|
||||
needs: [generate-release-notes]
|
||||
runs-on: macos-13
|
||||
if: false
|
||||
steps:
|
||||
- run: echo "TODO"
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Download ipa
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: m3_lightmeter_ipa
|
||||
|
||||
- name: Upload app to TestFlight
|
||||
uses: apple-actions/upload-testflight-build@v1
|
||||
with:
|
||||
app-path: "lightmeter.ipa"
|
||||
issuer-id: ${{ secrets.APP_STORE_ISSUER_ID }}
|
||||
api-key-id: ${{ secrets.APP_STORE_API_KEY_ID }}
|
||||
api-private-key: ${{ secrets.APP_STORE_API_KEY }}
|
||||
|
||||
cleanup:
|
||||
name: Cleanup
|
||||
if: ${{ always() }}
|
||||
needs:
|
||||
[
|
||||
create-github-release,
|
||||
create-google-play-release,
|
||||
create-app-store-release,
|
||||
]
|
||||
[create-github-release, create-google-play-release, upload-to-app-store]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Delete release notes artifact
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
name: lightmeter
|
||||
description: Lightmeter app inspired by Material 3 design system.
|
||||
publish_to: "none"
|
||||
version: 0.17.2+48
|
||||
version: 0.0.1+6
|
||||
|
||||
environment:
|
||||
sdk: ">=3.0.0 <4.0.0"
|
||||
|
|
Loading…
Reference in a new issue