Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jpsim/Yams
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: LootApp/Yams
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Sep 16, 2017

  1. add fastfile

    Fabio Milano committed Sep 16, 2017
    Copy the full SHA
    eb6e26b View commit details
  2. New release version bump

    Fabio Milano committed Sep 16, 2017
    Copy the full SHA
    79ed2a3 View commit details
Showing with 58 additions and 3 deletions.
  1. +6 −2 .gitignore
  2. +1 −1 Yams.xcodeproj/YamsTests_Info.plist
  3. +51 −0 fastlane/Fastfile
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -59,5 +59,9 @@ Carthage/Build
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md

fastlane/report.xml
fastlane/screenshots
## Fastlane
fastlane/screenshots/
fastlane/*.xml
fastlane/*.md
fastlane/*.html
*.zip
2 changes: 1 addition & 1 deletion Yams.xcodeproj/YamsTests_Info.plist
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>0.3.6</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
51 changes: 51 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@

fastlane_version "1.37.0"

default_platform :ios

FRAMEWORK_NAME = "Yams".freeze
REPOSITORY_NAME = "Yams".freeze

platform :ios do
desc "Release new version"
lane :release do |options|
target_version = options[:version]
raise "The version is missed. Use `fastlane release version:{version_number}`.`" if target_version.nil?

ensure_git_branch
ensure_git_status_clean

# Increment version
increment_version_number(version_number: target_version)

# Create Carthage framework
Actions.sh("cd .. && carthage build --no-skip-current && carthage archive #{FRAMEWORK_NAME}")
framework_binary = File.join(File.expand_path('../..', __FILE__),"#{FRAMEWORK_NAME}.framework.zip")
raise "No binary found to upload #{framework_binary}" if File.file?(framework_binary) == false

unless (`git status --porcelain`).empty?
git_add
git_commit(path: ".", message: "New release version bump")

# Create release tag
push_to_git_remote
end

set_github_release(
repository_name: "LootApp/#{REPOSITORY_NAME}",
api_token: ENV['GITHUB_API_TOKEN'],
tag_name: target_version,
upload_assets: [ framework_binary ],
name: "",
description: ""
)
end

after_all do |lane|

end

error do |lane, exception|

end
end