Skip to content

Commit

Permalink
Add support for flutter/ios and working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
nasirky committed Jul 14, 2023
1 parent 33b05f2 commit 1298978
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/flutter-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
- run: flutter test --dart-define STAGE=mock

android-publish:
runs-on: [self-hosted, Linux]
runs-on: [self-hosted, Linux, android]
needs: [generate-build-number, lint, test]
steps:
- uses: QuickBirdEng/actions/checkout-ssh@main
Expand All @@ -88,7 +88,7 @@ jobs:
upload-key: ${{ secrets.UPLOAD_KEY }}

ios-publish:
runs-on: [self-hosted, macOS]
runs-on: [self-hosted, macOS, legacy-flutter]
needs: [generate-build-number, lint, test]
steps:
- uses: QuickBirdEng/actions/checkout-ssh@main
Expand All @@ -100,7 +100,7 @@ jobs:
with:
build-type: ipa
build-number: ${{ needs.generate-build-number.outputs.build-number }}
build-arguments: --no-codesign ${{ inputs.ios-build-arguments }}
build-arguments: ${{ inputs.ios-build-arguments }}
clean: true
working-directory: ${{ inputs.working-directory }}
- uses: QuickBirdEng/actions/publish-ios@main
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/ios-manage-signing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ env:
on:
workflow_call:
inputs:
platform:
description: 'flutter or ios?'
default: ios
working-directory:
description: 'Provide working directory (if you aren't using default directory structure)'
default: '.'
certificate-type:
description: 'Possible values are development and distribution'
type: string
Expand All @@ -16,6 +22,8 @@ on:
jobs:
renew:
runs-on: [self-hosted, macOS]
defaults:
run: working-directory: ${{ inputs.working-directry }}
if: contains('["nasirky","acpoppe","grafele"]', github.triggering_actor)
steps:
- uses: QuickBirdEng/actions/checkout-ssh@main
Expand Down Expand Up @@ -46,6 +54,9 @@ jobs:
git remote add match ${{ secrets.MATCH_REPO }}
git add . && git commit -m "Remove ${{ inputs.certificate-type }} profiles and (optionally) certificates for ${{ env.BUNDLE_ID }}" && git push match || true
- uses: QuickBirdEng/actions/setup-fastlane@main
with:
platform: ${{ inputs.platform }}
working-directory: ${{ inputs.working-directory }}
- uses: QuickBirdEng/actions/setup-fastlane-environment@main
with:
match-repository: ${{ secrets.MATCH_REPO }}
Expand All @@ -59,6 +70,8 @@ jobs:
- name: Generate/Download provisioning profiles & (maybe) certificates
shell: bash -l {0}
run: |
[[ "${{ inputs.platform }}" == "flutter" ]] && cd ios
if [[ '${{ inputs.certificate-type }}' == 'distribution' ]]; then
fastlane match_for_signing type:appstore refresh_certificates:true
fastlane match_for_signing type:adhoc refresh_certificates:true
Expand Down

0 comments on commit 1298978

Please sign in to comment.