Skip to content

Commit

Permalink
new podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
Honza Dvorsky committed Sep 3, 2015
1 parent 26ee2ff commit 634b676
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions XcodeServerSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "XcodeServerSDK"
s.version = "0.1.10"
s.version = "0.2.0"
s.summary = "Access Xcode Server API with native Swift objects."

s.homepage = "https://github.com/czechboy0/XcodeServerSDK"
Expand All @@ -14,7 +14,7 @@ Pod::Spec.new do |s|
s.osx.deployment_target = "10.10"
s.watchos.deployment_target = "2.0"

s.source = { :git => "https://github.com/czechboy0/XcodeServerSDK.git", :tag => "v0.1.10" }
s.source = { :git => "https://github.com/czechboy0/XcodeServerSDK.git", :tag => "v#{s.version}" }

s.source_files = "XcodeServerSDK/**/*.{swift}"

Expand Down
16 changes: 9 additions & 7 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,17 @@ platform :mac do
ensure_git_branch(branch: "swift-2")
git_pull

# regen the changelog
sh "cd .. && github_changelog_generator -t $GITHUB_TOKEN"
sh "cd .. && subl CHANGELOG.md"
# regen the changelog and open it
sh "cd .. && github_changelog_generator -t $GITHUB_TOKEN && subl CHANGELOG.md"

# assume version from the podspec
version = JSON.parse(sh "cd .. && pod spec cat *.podspec")['source']['tag']

# ask for the version
version = prompt(text: 'New Version Tag: ')
# ask for info
title = prompt(text: 'Release Title: ')
description = prompt(text: "Release changelog: ",
multi_line_end_keyword: "END")

# TODO: up the CocoaPod version spec, commit and push and pod trunk push before you make the release

# create a new release on GitHub
repo_url = "czechboy0/XcodeServerSDK"
release = set_github_release(
Expand All @@ -56,6 +55,9 @@ platform :mac do
is_prerelease: false
)

# release podspec to cocoapods
sh "cd .. && pod trunk push"

# notify us on slack
slack(
slack_url: ENV['SLACK_RELEASES_URL'],
Expand Down

0 comments on commit 634b676

Please sign in to comment.