-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔀 Merge branch 'ladislas/feature/fastlane-release-to-app-store'
- Loading branch information
Showing
6 changed files
with
207 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Leka - iOS Monorepo | ||
# Copyright APF France handicap | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Fastlane - Release to App Store | ||
|
||
on: | ||
pull_request: | ||
types: [labeled] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
TUIST_TURN_OFF_LINTERS: TRUE | ||
APP_STORE_CONNECT_API_KEY_CONTENT_RELEASE_APP_STORE: ${{ secrets. APP_STORE_CONNECT_API_KEY_CONTENT_RELEASE_APP_STORE }} | ||
APP_STORE_CONNECT_ISSUER_ID: ${{ secrets. APP_STORE_CONNECT_ISSUER_ID }} | ||
APP_STORE_CONNECT_API_KEY_ID_RELEASE_APP_STORE: ${{ secrets. APP_STORE_CONNECT_API_KEY_ID_RELEASE_APP_STORE }} | ||
FASTLANE_KEYCHAIN_PASSWORD: ${{ secrets.FASTLANE_KEYCHAIN_PASSWORD }} | ||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | ||
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }} | ||
|
||
jobs: | ||
release_app_store: | ||
if: contains(github.event.label.name, 'fastlane:ras') | ||
name: fastlane upload_to_app_store | ||
runs-on: [self-hosted, iOS] | ||
|
||
env: | ||
PR_NUMBER: ${{ github.event.pull_request.number }} | ||
FASTLANE_SKIP_UPDATE_CHECK: 1 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 # shallow clone | ||
|
||
- name: Setup mise | ||
run: | | ||
echo "$HOME/.local/share/mise/shims" >> $GITHUB_PATH | ||
- name: bundle install | ||
run: | | ||
bundle install | ||
- name: tuist fetch | ||
run: | | ||
tuist fetch | ||
- name: fastlane helloworld | ||
run: | | ||
bundle exec fastlane helloworld | ||
- name: fastlane sync_certificates | ||
run: | | ||
bundle exec fastlane sync_certificates release:true --verbose | ||
- name: fastlane release LekaApp | ||
if: contains(github.event.label.name, 'LekaApp') | ||
run: | | ||
bundle exec fastlane release target:LekaApp --verbose | ||
- name: fastlane release LekaUpdater | ||
if: contains(github.event.label.name, 'LekaUpdater') | ||
run: | | ||
bundle exec fastlane release target:LekaUpdater --verbose | ||
- name: remove label | ||
if: always() | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
script: | | ||
const { LABEL_NAME } = process.env | ||
github.rest.issues.removeLabel({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
name: LABEL_NAME | ||
}) | ||
env: | ||
LABEL_NAME: ${{ github.event.label.name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,7 @@ | |
|
||
username('[email protected]') # your Apple ID user | ||
|
||
submit_for_review(true) | ||
automatic_release(true) | ||
submit_for_review(false) | ||
automatic_release(false) | ||
|
||
languages(%w[en-US fr-FR]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters