Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement bump version #41

Open
jsbean opened this issue Dec 29, 2016 · 3 comments
Open

Implement bump version #41

jsbean opened this issue Dec 29, 2016 · 3 comments

Comments

@jsbean
Copy link
Member

jsbean commented Dec 29, 2016

  • Update product version (Xcode build configuration)
  • git tag ...
  • git push origin tag ...
  • carthage build --no-skip-current
  • carthage archive
@jsbean
Copy link
Member Author

jsbean commented Dec 29, 2016

Usage:

dn-m bump [-M | -m | -p]

  • -M: Major version (1.2.4 -> 2.0)
  • -m: Minor version(1.2.4 -> 1.3)
  • -p: Patch version(1.2.4 -> 1.2.5)

@jsbean
Copy link
Member Author

jsbean commented Dec 29, 2016

Get current version from git, then do calculation of new version based on flag.

Tags are stored as files in .git/refs/tags.

@jsbean
Copy link
Member Author

jsbean commented Jan 10, 2017

Then, build an archive:

carthage build --no-skip-current
carthage archive

Then, use github-release to do something like this:

$ github-release upload \
    --user dn-m \
    --repo ${project_name} \
    --tag ${tag} \
    --name "${project_name}.framework.zip" \
    --file path/to/file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant