Skip to content

Commit

Permalink
chore(): trigger PR (#16)
Browse files Browse the repository at this point in the history
* chore(): trigger PR

* feat(): get build number from test flight and update it

* chore(): trigger build

* chore(): pass envs from CI

* chore(): unlock ci actions
  • Loading branch information
Dawqss authored Oct 23, 2024
1 parent 3b2ad33 commit da93626
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 28 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/check-build-deploy-to-test-users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ on:
pull_request:
branches:
- master
# types:
# - closed
types:
- closed

jobs:
tsc:
# if: github.event.pull_request.merged == true
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down Expand Up @@ -61,3 +61,8 @@ jobs:
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
GIT_AUTHORIZATION: ${{ secrets.GIT_AUTHORIZATION }}
APPLE_APP_IDENTIFIER: ${{ secrets.APPLE_APP_IDENTIFIER }}
TEAM_NAME: ${{ secrets.TEAM_NAME }}
TEAM_ID: ${{ secrets.TEAM_ID }}
ITC_TEAM_NAME: ${{ secrets.ITC_TEAM_NAME }}
ITC_TEAM_ID: ${{ secrets.ITC_TEAM_ID }}
2 changes: 1 addition & 1 deletion .github/workflows/ci-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI Pipeline
on:
pull_request:
branches:
- masterDontUseMe
- master

jobs:
tsc:
Expand Down
5 changes: 5 additions & 0 deletions App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import React, { ReactElement } from 'react';
import { MainRouterNavigation } from './app/navigation/MainRouter.tsx';

/**
* This is main app point
* r
* @constructor
*/
function App(): ReactElement {
return <MainRouterNavigation />;
}
Expand Down
2 changes: 1 addition & 1 deletion ios/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ PLATFORMS

DEPENDENCIES
dotenv
fastlane
fastlane (~> 2.224.0)

BUNDLED WITH
2.5.3
8 changes: 4 additions & 4 deletions ios/fastlane/Appfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#For more information about the Appfile, see:
#https://docs.fastlane.tools/advanced/#appfile

team_name "Dawid Wyrkowski"
team_id "5G4M55X26F"
itc_team_name "Dawid Wyrkowski"
itc_team_id "127349639"
team_name ENV["TEAM_NAME"]
team_id ENV["TEAM_ID"]
itc_team_name ENV["ITC_TEAM_NAME"]
itc_team_id ENV["ITC_TEAM_ID"]
53 changes: 34 additions & 19 deletions ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
GIT_AUTHORIZATION = ENV["GIT_AUTHORIZATION"]
KEY_ID = ENV["APP_STORE_CONNECT_API_KEY_KEY_ID"]
ISSUER_ID = ENV["APP_STORE_CONNECT_API_KEY_ISSUER_ID"]
KEY_CONTENT = ENV["APP_STORE_CONNECT_API_KEY_KEY"]
APP_IDENTIFIER = ENV["APPLE_APP_IDENTIFIER"]

default_platform(:ios)

Expand All @@ -7,7 +11,7 @@ platform :ios do
lane :certificates do
sync_code_signing(
type: "appstore",
app_identifier: "com.dawidcompany.simpleweatherapp",
app_identifier: APP_IDENTIFIER,
git_basic_authorization: Base64.strict_encode64(GIT_AUTHORIZATION),
force_for_new_devices: true,
readonly: true
Expand All @@ -19,7 +23,7 @@ platform :ios do
lane :generate_new_certificates do
sync_code_signing(
type: "appstore",
app_identifier: "com.dawidcompany.simpleweatherapp",
app_identifier: APP_IDENTIFIER,
git_basic_authorization: Base64.strict_encode64(GIT_AUTHORIZATION),
force_for_new_devices: true,
readonly: false
Expand All @@ -28,24 +32,35 @@ platform :ios do
end

desc "deploy"
lane :deploy do
setup_ci
lane :deploy do
setup_ci
api_key = app_store_connect_api_key(
key_id: KEY_ID,
issuer_id: ISSUER_ID,
key_content: KEY_CONTENT,
is_key_content_base64: true
)
build_num = app_store_build_number(
live: false,
api_key: api_key,
app_identifier: APP_IDENTIFIER
)

increment_build_number(xcodeproj: "CkOnboardinApp.xcodeproj", build_number: latest_testflight_build_number + 1)
increment_build_number(xcodeproj: "CkOnboardinApp.xcodeproj", build_number: build_num + 1)

sync_code_signing(
type: "appstore",
app_identifier: 'com.dawidcompany.simpleweatherapp',
git_basic_authorization: Base64.strict_encode64(GIT_AUTHORIZATION),
force_for_new_devices: true,
readonly: true
)
sync_code_signing(
type: "appstore",
app_identifier: APP_IDENTIFIER,
git_basic_authorization: Base64.strict_encode64(GIT_AUTHORIZATION),
force_for_new_devices: true,
readonly: true
)

build_app(scheme: "CkOnboardinApp")
app_store_connect_api_key(
is_key_content_base64: true,
in_house: false,
)
upload_to_testflight()
end
build_app(scheme: "CkOnboardinApp")
app_store_connect_api_key(
is_key_content_base64: true,
in_house: false,
)
upload_to_testflight()
end
end
2 changes: 2 additions & 0 deletions ios/fastlane/Matchfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
git_url("https://github.com/Dawqss/FastlaneCerts.git")
#[email protected]:Dawqss/FastlaneCerts.git
#https://github.com/Dawqss/FastlaneCerts.git

storage_mode("git")

Expand Down

0 comments on commit da93626

Please sign in to comment.