Skip to content

Commit

Permalink
Simplify the release process
Browse files Browse the repository at this point in the history
  • Loading branch information
lacostej committed Sep 25, 2018
1 parent cd0ca5d commit a5d31bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions DEVELOPMENT_PROCESS.md
@@ -1,15 +1,13 @@
= Notes for dev team

* prepare a version
* prepare a version (includes bump version)

`rake pre_release`

* make a release

`rake release`

`rake bump`

= release of the fastlane plugin

`cd fastlane-plugin-u3d`
Expand Down
5 changes: 2 additions & 3 deletions Rakefile
Expand Up @@ -103,7 +103,7 @@ task :prepare_git_pr, [:pr_branch] do |_t, args|
end

desc 'Prepare a release: check repo status, generate changelog, create PR'
task pre_release: 'ensure_git_clean' do
task pre_release: 'bump' do
require 'u3d/version'
nextversion = U3d::VERSION

Expand Down Expand Up @@ -133,7 +133,7 @@ task pre_release: 'ensure_git_clean' do
sh "git branch -D #{pr_branch}"
end

desc 'Bump the version number to the version entered interactively; pushes a commit to master'
desc 'Bump the version number to the version entered interactively'
task bump: 'ensure_git_clean' do
nextversion = UI.input "Next version will be:"
UI.user_error! "Bump version stopped by user" unless UI.confirm("Next version will be #{nextversion}. Confirm?")
Expand All @@ -142,7 +142,6 @@ task bump: 'ensure_git_clean' do
sh 'rspec'
sh 'git add .github_changelog_generator lib/u3d/version.rb Gemfile.lock'
sh "git commit -m 'Bump version to #{nextversion}'"
sh 'git push'
end

desc 'Update the changelog, no commit made'
Expand Down

0 comments on commit a5d31bb

Please sign in to comment.