mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-12-04 21:30:39 +00:00
Compare commits
No commits in common. "b61ed93a88df969f23418aa32d8b105411fd97bb" and "f05be2ff39ebcee8f2258aba65ffaea0763b62bc" have entirely different histories.
b61ed93a88
...
f05be2ff39
4 changed files with 20 additions and 34 deletions
12
.github/workflows/build_apk.yml
vendored
12
.github/workflows/build_apk.yml
vendored
|
@ -85,6 +85,12 @@ 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"
|
||||
|
@ -109,12 +115,6 @@ 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,9 +101,6 @@ 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() && !failure() && !cancelled() }}
|
||||
if: always() && (needs.run-integration-tests.result == 'success' || needs.run-integration-tests.result == 'skipped')
|
||||
strategy:
|
||||
matrix:
|
||||
binary-type: [apk, appbundle]
|
||||
|
@ -53,7 +53,7 @@ jobs:
|
|||
build-ios:
|
||||
name: Build iOS (.ipa)
|
||||
needs: [run-integration-tests]
|
||||
if: ${{ always() && !failure() && !cancelled() }}
|
||||
if: always() && (needs.run-integration-tests.result == 'success' || needs.run-integration-tests.result == 'skipped')
|
||||
uses: ./.github/workflows/build_ipa.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
|
@ -63,7 +63,6 @@ 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
|
||||
|
@ -80,8 +79,8 @@ jobs:
|
|||
create-github-release:
|
||||
name: Create Github release
|
||||
needs: [generate-release-notes]
|
||||
if: false
|
||||
runs-on: ubuntu-latest
|
||||
if: false
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
|
@ -130,8 +129,8 @@ jobs:
|
|||
create-google-play-release:
|
||||
name: Create Google Play release
|
||||
needs: [generate-release-notes]
|
||||
if: false
|
||||
runs-on: ubuntu-latest
|
||||
if: false
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
|
@ -197,33 +196,23 @@ jobs:
|
|||
with:
|
||||
name: m3_lightmeter_appbundle
|
||||
|
||||
upload-to-app-store:
|
||||
name: Upload to App Store
|
||||
create-app-store-release:
|
||||
name: Create App Store release
|
||||
needs: [generate-release-notes]
|
||||
runs-on: macos-13
|
||||
if: false
|
||||
steps:
|
||||
- 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 }}
|
||||
- run: echo "TODO"
|
||||
|
||||
cleanup:
|
||||
name: Cleanup
|
||||
if: ${{ always() }}
|
||||
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
|
||||
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.0.1+6
|
||||
version: 0.17.2+48
|
||||
|
||||
environment:
|
||||
sdk: ">=3.0.0 <4.0.0"
|
||||
|
|
Loading…
Reference in a new issue