mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-12-04 21:30:39 +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 }}
|
if: ${{ !inputs.include-iap }}
|
||||||
run: bash ./.github/scripts/stub_iap.sh
|
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
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: "zulu"
|
distribution: "zulu"
|
||||||
|
@ -115,6 +109,12 @@ jobs:
|
||||||
- name: Increment build number & replace version number
|
- name: Increment build number & replace version number
|
||||||
run: bash ./.github/scripts/increment_build_number.sh ${{ github.event.inputs.version }}
|
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
|
- name: Prepare flutter project
|
||||||
run: |
|
run: |
|
||||||
flutter --version
|
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 }}
|
CONSTANTS: ${{inputs.stage-backend && secrets.CONSTANTS_STAGE || secrets.CONSTANTS }}
|
||||||
run: bash .github/scripts/restore_from_base64.sh "${{ env.CONSTANTS }}" "lib/constants.dart"
|
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
|
- name: Install Flutter
|
||||||
uses: subosito/flutter-action@v2
|
uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
|
|
37
.github/workflows/create_release.yml
vendored
37
.github/workflows/create_release.yml
vendored
|
@ -38,7 +38,7 @@ jobs:
|
||||||
build-android:
|
build-android:
|
||||||
name: Build Android (.${{ matrix.binary-type }})
|
name: Build Android (.${{ matrix.binary-type }})
|
||||||
needs: [run-integration-tests]
|
needs: [run-integration-tests]
|
||||||
if: always() && (needs.run-integration-tests.result == 'success' || needs.run-integration-tests.result == 'skipped')
|
if: ${{ always() && !failure() && !cancelled() }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
binary-type: [apk, appbundle]
|
binary-type: [apk, appbundle]
|
||||||
|
@ -53,7 +53,7 @@ jobs:
|
||||||
build-ios:
|
build-ios:
|
||||||
name: Build iOS (.ipa)
|
name: Build iOS (.ipa)
|
||||||
needs: [run-integration-tests]
|
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
|
uses: ./.github/workflows/build_ipa.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
|
@ -63,6 +63,7 @@ jobs:
|
||||||
generate-release-notes:
|
generate-release-notes:
|
||||||
name: Generate release notes
|
name: Generate release notes
|
||||||
needs: [build-android, build-ios]
|
needs: [build-android, build-ios]
|
||||||
|
if: ${{ always() && !failure() && !cancelled() }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Generate release notes
|
- name: Generate release notes
|
||||||
|
@ -79,8 +80,8 @@ jobs:
|
||||||
create-github-release:
|
create-github-release:
|
||||||
name: Create Github release
|
name: Create Github release
|
||||||
needs: [generate-release-notes]
|
needs: [generate-release-notes]
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: false
|
if: false
|
||||||
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
|
@ -129,8 +130,8 @@ jobs:
|
||||||
create-google-play-release:
|
create-google-play-release:
|
||||||
name: Create Google Play release
|
name: Create Google Play release
|
||||||
needs: [generate-release-notes]
|
needs: [generate-release-notes]
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: false
|
if: false
|
||||||
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
@ -196,23 +197,33 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: m3_lightmeter_appbundle
|
name: m3_lightmeter_appbundle
|
||||||
|
|
||||||
create-app-store-release:
|
upload-to-app-store:
|
||||||
name: Create App Store release
|
name: Upload to App Store
|
||||||
needs: [generate-release-notes]
|
needs: [generate-release-notes]
|
||||||
runs-on: macos-13
|
runs-on: macos-13
|
||||||
if: false
|
|
||||||
steps:
|
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:
|
cleanup:
|
||||||
name: Cleanup
|
name: Cleanup
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
needs:
|
needs:
|
||||||
[
|
[create-github-release, create-google-play-release, upload-to-app-store]
|
||||||
create-github-release,
|
|
||||||
create-google-play-release,
|
|
||||||
create-app-store-release,
|
|
||||||
]
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Delete release notes artifact
|
- name: Delete release notes artifact
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
name: lightmeter
|
name: lightmeter
|
||||||
description: Lightmeter app inspired by Material 3 design system.
|
description: Lightmeter app inspired by Material 3 design system.
|
||||||
publish_to: "none"
|
publish_to: "none"
|
||||||
version: 0.17.2+48
|
version: 0.0.1+6
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=3.0.0 <4.0.0"
|
sdk: ">=3.0.0 <4.0.0"
|
||||||
|
|
Loading…
Reference in a new issue