Skip to content

Commit

Permalink
Improve releasing process
Browse files Browse the repository at this point in the history
  • Loading branch information
lukakerr committed Mar 26, 2019
1 parent e9ba0f9 commit 221a137
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
23 changes: 10 additions & 13 deletions Docs/Development/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

Let `x.x.x` represent the version number.

1. In Xcode select the Pine project from the sidebar
2. Under the 'General' tab, bump the version number
3. Create a git commit titled 'Bump version to x.x.x' and push to remote
4. Run `make release`
5. Compress Pine.app into a .zip file named Pine-x.x.x.zip
6. In GitHub draft a new release
1. Run `make PINE_VERSION=x.x.x tag` to bump the version
2. Create a git commit titled 'Bump version to x.x.x' and push to remote
3. Run `make release`
4. Compress Pine.app into a .zip file named Pine-x.x.x.zip
5. In GitHub draft a new release
- Tag version: `x.x.x`
- Release title: `Pine x.x.x`
- Describe this release:
Expand All @@ -27,10 +26,8 @@ Let `x.x.x` represent the version number.
- ...
```
- Upload Pine.x.x.x.zip
7. Click 'Publish release'
8. Download the Pine.x.x.x.zip from the newly created release
9. Open `lukakerr/homebrew-casks` repository
10. Create a new branch if one already doesn't exist
11. Run `shasum -a 256 ~/Downloads/Pine-x.x.x.zip` and copy the SHA-256 checksum
12. Run `open Casks/pine.rb` and update the cask with the new version and checksum
13. Create a git commit with the message `Update Pine to x.x.x` and push to remote
6. Click 'Publish release'
7. Open `lukakerr/homebrew-things` repository
8. Run `shasum -a 256 /path/to/Pine-x.x.x.zip` (using the correct path) and copy the SHA-256 checksum
9. Run `open Casks/pine.rb` and update the cask with the new version and checksum
10. Create a git commit with the message `Update Pine to x.x.x` and push to remote
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all build test release clean clean-release clean-build
.PHONY: all build test tag release clean clean-release clean-build

all: build

Expand All @@ -13,6 +13,13 @@ test:
-configuration Debug test \
-workspace ./Pine.xcworkspace

tag:
ifdef PINE_VERSION
/usr/libexec/Plistbuddy -c "Set CFBundleShortVersionString $(PINE_VERSION)" ./Pine/Info.plist
else
@echo 'PINE_VERSION is not set'
endif

release:
xcodebuild archive \
-scheme Pine \
Expand Down

0 comments on commit 221a137

Please sign in to comment.