Compare commits

..

5 commits

Author SHA1 Message Date
Vadim
b61ed93a88 typo 2024-03-16 11:30:24 +01:00
Vadim
1dbcf27cf9 test ipa upload 2024-03-16 11:29:07 +01:00
Vadim
2fb3bdb970 upload ipa to app store 2024-03-16 11:27:46 +01:00
Vadim
257403455c increment build number for ios 2024-03-16 11:27:36 +01:00
Vadim
7fa781f4ca enabled releases 2024-03-15 08:34:19 +01:00
4 changed files with 34 additions and 20 deletions

View file

@ -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

View file

@ -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:

View file

@ -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

View file

@ -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"