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

View file

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

View file

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

View file

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