Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
c6bf084
add iOS project.
TakuKobayashi Oct 16, 2019
e6e7d5e
pod init
TakuKobayashi Oct 18, 2019
c230bd3
bundler init and install cocoapods and fastlane
TakuKobayashi Oct 18, 2019
e02c6d4
init fastlane
TakuKobayashi Oct 18, 2019
0ba4ff7
execute fastlane build
TakuKobayashi Oct 22, 2019
58cd82d
add iOS build settings and memos
TakuKobayashi Oct 23, 2019
91c7339
open xcworkspace
TakuKobayashi Oct 23, 2019
f5e965a
add dotenv and document
TakuKobayashi Oct 24, 2019
0811c4f
add build lineup
TakuKobayashi Oct 24, 2019
6df0146
eecute sample build.
TakuKobayashi Oct 24, 2019
91d1d61
bundle update
TakuKobayashi May 23, 2020
7aaf50b
reset up fastlane
TakuKobayashi May 23, 2020
65e2d3a
update fastlane command
TakuKobayashi May 31, 2020
f5e91db
add github actions iOS release build
TakuKobayashi May 31, 2020
e51d1af
fix
TakuKobayashi May 31, 2020
2f66695
fix
TakuKobayashi May 31, 2020
9891f91
set working-directory iOS
TakuKobayashi May 31, 2020
7abcf7d
edit can fastlane build with needs files
TakuKobayashi May 31, 2020
01fb1c2
add command line options
TakuKobayashi Jun 1, 2020
8591dd1
setup_common
TakuKobayashi Jun 1, 2020
be5da05
setup iOS github actions build
TakuKobayashi Jun 1, 2020
9f1e9b9
add fastlane args params
TakuKobayashi Jun 1, 2020
c4ae488
edit task name
TakuKobayashi Jun 1, 2020
1b6ba2b
use bundle exec
TakuKobayashi Jun 1, 2020
cc453c7
Edit task number and task name
TakuKobayashi Jun 1, 2020
1a1bc46
edit name
TakuKobayashi Jun 1, 2020
c9b94cb
test scargs
TakuKobayashi Jun 1, 2020
00dd8d0
set project name
TakuKobayashi Jun 1, 2020
9a10aba
test
TakuKobayashi Jun 1, 2020
5779de2
fix
TakuKobayashi Jun 1, 2020
dca2d8e
set workspace
TakuKobayashi Jun 1, 2020
f01db99
update_project_provisioning
TakuKobayashi Jun 1, 2020
4c2a8f9
test
TakuKobayashi Jun 1, 2020
c2e4811
test fix
TakuKobayashi Jun 1, 2020
43d2ad3
appear cer file
TakuKobayashi Jun 2, 2020
e152681
update project
TakuKobayashi Jun 2, 2020
f7f5de6
fix
TakuKobayashi Jun 2, 2020
a60cfd0
add install bundler
TakuKobayashi Jun 2, 2020
57bc3b6
update
TakuKobayashi Jun 2, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .github/workflows/ios-store-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: iOS Store Build

on:
push:

jobs:
build:
runs-on: macos-latest
strategy:
matrix:
xcode-version: [11.5]
build-configuration: [Release]
provisioning-profile-filepath: [githubactionsexamplesstorebuild20200531.mobileprovision]
build-scheme: [github-actions-examples]
xcodeproject-path: [github-actions-examples.xcodeproj]
keychain-name: [github-actions-examples-chain]
certificate-path: [ios_distribution.p12]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.6'
- name: Install Bundler
working-directory: ./iOS
run: gem update bundler
- name: Bundle Install
working-directory: ./iOS
run: bundle install
- name: Select Xcode version
working-directory: ./iOS
run: sudo xcode-select -s '/Applications/Xcode_${{ matrix.xcode-version }}.app'
- name: Show Xcode version
working-directory: ./iOS
run: xcodebuild -version
- name: Decode base64 p12 iOS Build key
working-directory: ./iOS
env:
IOS_DISTRIBUTION_CERTIFICATE_P12_FILE_BASE64: ${{ secrets.IOS_DISTRIBUTION_CERTIFICATE_P12_FILE_BASE64 }}
run: |
echo ${IOS_DISTRIBUTION_CERTIFICATE_P12_FILE_BASE64} | base64 -d > ${{ matrix.certificate-path }}
- name: Decode base64 certificates
working-directory: ./iOS
env:
IOS_STORE_CERTIFICATES_FILE_BASE64: ${{ secrets.IOS_STORE_CERTIFICATES_FILE_BASE64 }}
run: |
echo ${IOS_STORE_CERTIFICATES_FILE_BASE64} | base64 -d > ios_distribution.cer
- name: Decode base64 provisioning profile
working-directory: ./iOS
env:
IOS_STORE_MOBILEPROVISION_FILE_BASE64: ${{ secrets.IOS_STORE_MOBILEPROVISION_FILE_BASE64 }}
run: |
echo ${IOS_STORE_MOBILEPROVISION_FILE_BASE64} | base64 -d > ${{ matrix.provisioning-profile-filepath }}
- name: Setup Fastlane Build .env
working-directory: ./iOS
env:
KEYCHAIN_PASSWORD: ${{ secrets.IOS_DISTRIBUTION_KEYCHAIN_PASSWORD }}
CERT_PASSWORD: ${{ secrets.IOS_DISTRIBUTION_CERT_PASSWORD }}
run: |
echo "KEYCHAIN_PASSWORD=${KEYCHAIN_PASSWORD}" >> ./fastlane/.env
echo "CERT_PASSWORD=${CERT_PASSWORD}" >> ./fastlane/.env
- name: execute fastlane ios build
working-directory: ./iOS
run: bundle exec fastlane ios store_build scheme:${{ matrix.build-scheme }} xcode_version:${{ matrix.xcode-version }} configuration:${{ matrix.build-configuration }} provisioning_profile:${{ matrix.provisioning-profile-filepath }} xcodeproject_path:${{ matrix.xcodeproject-path }} team_id:${{ secrets.IOS_TEAM_ID }} keychain_name:${{ matrix.keychain-name }} certificate_path:${{ matrix.certificate-path }} create_new_keychain:true --verbose
- uses: actions/upload-artifact@master
with:
name: result
path: iOS/${{ matrix.build-scheme }}-store-${{ matrix.build-configuration }}.ipa
130 changes: 125 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ proguard/
.idea/libraries/
.gradle/
app/build/
build/
captures/

.externalNativeBuild
Expand Down Expand Up @@ -273,9 +272,130 @@ firebase-debug.log*
# .firebaserc

**/dist/*.js
webapi.js
.cxx

.esbuild/

google-services.json
# Created by https://www.gitignore.io/api/xcode,xcodeinjection
# Edit at https://www.gitignore.io/?templates=xcode,xcodeinjection

### Xcode ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

## Xcode Patch
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcodeproj/xcshareddata/
!*.xcworkspace/contents.xcworkspacedata
*.gcno

### Xcode Patch ###
**/xcshareddata/WorkspaceSettings.xcsettings

### XcodeInjection ###
# Code Injection
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
DerivedData/

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
# plugin
.history

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output

*.mobileprovision
*.p12
*.cer

.DS_Store
10 changes: 10 additions & 0 deletions iOS/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# frozen_string_literal: true

source "https://rubygems.org"

git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }

gem "cocoapods"
gem "fastlane"
gem "dotenv"
gem "xcode-install"
Loading