This workflow will describe all the necessary steps that you need to follow to release a project.
It is targeted for those projects where more than one members are contributing in the project because that will require a standard workflow that will keep the quality in check at each level.
So try to follow the steps as mentioned below, where a repository have been taken for sample.
Note: Although I have mentioned all the steps using command line but I'll recommend you to use Sourcetree app instead because it will provide a lot of ease while following the workflow.
It is targeted for those projects where more than one members are contributing in the project because that will require a standard workflow that will keep the quality in check at each level.
So try to follow the steps as mentioned below, where a repository have been taken for sample.
- First you need to setup the codebase on your local machine
- Create a clone of the repository
- git clone "project-repository-git-url"
- Get inside the repository folder
- cd "project-repository-path"
- Refer this article https://gist.github.com/ribbon-abku/10d3fc1cff5c35a2df401196678e258a to learn more about the gitflow mechanism of handling a project
- Enable git flow mechanism on the current repository
- git flow init -d
- It is required to be done by each contributor on their respective clones
- Check out develop branch
- git checkout develop
- Copy & paste all the code in this folder from previous repo
- Update .gitignore file by adding file/folder name that you don't want to add in repo
- Stage all the relevant & required files
- git add .
- Commit the code with relevant message
- git commit -m "your-commit-message
" - If you add issue number in you commit message like #1 Added initial codebase, then the commit would reflect under issue from which it is associated
- git commit -m "#issue-number your-commit-message"
- Push the committed code
- git push
- Once you have made a stable code base in develop branch then raise pull request to merge it in master branch.
- When your pull request will get approved, then either you or approver can merge the pull request to the master branch.
- Using gitflow you need to create release branch as
- git flow release start release-1.0.0
- Test this code base to make sure everything is stable and releasable
- git flow release finish 'release-1.0.0'
- Then, go to releases section of the repository
- Create new release
- Mention Tag version, e.g., v1.0.0
- Choose the Target branch as release-1.0.0
- Mention the Release title as Release v1.0.0
- Add the release notes in the Describe section that should contain all the relevant text in points like
- New features added
- Bugs fixed
- Limitations if any
- Attach the binary files like installer exe, apk, app, etc.
- Click on Publish release button to make it release it publicly
Note: Although I have mentioned all the steps using command line but I'll recommend you to use Sourcetree app instead because it will provide a lot of ease while following the workflow.
Comments
Post a Comment