Skip to content

Commit

Permalink
chore: setup cd pipelines (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
markgravity committed May 21, 2021
1 parent 57ba141 commit 185711c
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 21 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/release_staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# This is a lint and test workflow for Flutter CI

name: Relase (staging)

# on:
# push:
# branches:
# - develop
# pull_request:
# branches:
# - develop
on:
pull_request:
jobs:
build_ios:
name: Build iOS
runs-on: macOS-latest
steps:
# Setup Java environment in order to build the Android app.
- uses: actions/[email protected]
- uses: actions/setup-java@v1
with:
java-version: '12.x'

# Setup the Flutter environment.
- uses: subosito/flutter-action@v1
with:
channel: 'stable' # 'dev', 'alpha', default to: 'stable'
# flutter-version: '1.12.x' # uncomment this to specify the exact version of Flutter

- name: Get Flutter dependencies.
run: flutter pub get

- name: Build app
run: flutter build ios --flavor staging -t lib/main-staging.dart --no-codesign

- name: Upload iPA
uses: actions/upload-artifact@master
with:
name: ios-build
path: build/ios/iphoneos
deploy_ios:
name: Upload to Firebase App Distribution
needs: [build_ios]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Download Artifact
uses: actions/[email protected]
with:
name: ios-build
- name: Upload IPA
uses: wzieba/[email protected]
with:
appId: ${{secrets.FIREBASE_IOS_APP_ID}}
token: ${{secrets.FIREBASE_TOKEN}}
file: Runner.ipa
debug: true
15 changes: 15 additions & 0 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -476,30 +476,43 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 723E2E286422E7355D82CD8E /* Pods-Runner.debug-production.xcconfig */;
buildSettings = {
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = FM5NT9MLCT;
PRODUCT_NAME = Runner;
PROVISIONING_PROFILE_SPECIFIER = "";
};
name = "Debug-production";
};
2D29D1A02628118400E4EB50 /* Profile-production */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = A5EBA3F1CC940667DF79EE46 /* Pods-Runner.profile-production.xcconfig */;
buildSettings = {
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = FM5NT9MLCT;
PRODUCT_NAME = Runner;
PROVISIONING_PROFILE_SPECIFIER = "";
};
name = "Profile-production";
};
2D29D1A12628118400E4EB50 /* Release-production */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = BD4D2DD9EF09CB23F1BFE775 /* Pods-Runner.release-production.xcconfig */;
buildSettings = {
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = FM5NT9MLCT;
PRODUCT_NAME = Runner;
PROVISIONING_PROFILE_SPECIFIER = "";
};
name = "Release-production";
};
2D29D1A22628118400E4EB50 /* Debug-staging */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 527D168B5B717A9D51E5BDE8 /* Pods-Runner.debug-staging.xcconfig */;
buildSettings = {
DEVELOPMENT_TEAM = FM5NT9MLCT;
PRODUCT_NAME = Runner;
};
name = "Debug-staging";
Expand All @@ -508,6 +521,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = C2F4412A61D42AC96F3D7D8A /* Pods-Runner.profile-staging.xcconfig */;
buildSettings = {
DEVELOPMENT_TEAM = FM5NT9MLCT;
PRODUCT_NAME = Runner;
};
name = "Profile-staging";
Expand All @@ -516,6 +530,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = E2E32C4D4960E4DC124372C0 /* Pods-Runner.release-staging.xcconfig */;
buildSettings = {
DEVELOPMENT_TEAM = FM5NT9MLCT;
PRODUCT_NAME = Runner;
};
name = "Release-staging";
Expand Down
8 changes: 2 additions & 6 deletions ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
Expand All @@ -38,8 +36,8 @@
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -61,8 +59,6 @@
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Profile"
Expand Down
43 changes: 28 additions & 15 deletions ios/Runner.xcodeproj/xcshareddata/xcschemes/staging.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,28 @@
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug-staging"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug-staging">
<AdditionalOptions>
</AdditionalOptions>
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
Expand All @@ -22,45 +36,44 @@
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug-staging"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
buildConfiguration = "Debug-staging"
allowLocationSimulation = "YES">
<AdditionalOptions>
</AdditionalOptions>
<BuildableProductRunnable
runnableDebuggingMode = "0">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</MacroExpansion>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release-staging"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES"
buildConfiguration = "Release-staging"
shouldUseLaunchSchemeArgsEnv = "YES">
<BuildableProductRunnable>
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug-staging">
Expand Down

0 comments on commit 185711c

Please sign in to comment.