-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create releasing and versioning workflows. refs #334
- Loading branch information
Showing
3 changed files
with
76 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Creating a new release | ||
|
||
These are the steps: | ||
```bash | ||
# Set and replace the version you need to tag and deploy | ||
VERSION='v0.1.x' | ||
|
||
# Checked out into develop branch | ||
git checkout dev | ||
|
||
# Fetched all remote updates | ||
git remote update | ||
|
||
# Update local develop branch with remote copy | ||
git pull origin dev | ||
|
||
# Created a release branch that tracks origin/develop | ||
git checkout -b release/$VERSION origin/dev | ||
|
||
# Pushed release branch to remote repository | ||
git push origin release/$VERSION | ||
|
||
# Opened a "pull request" in GitHub for team to verify the release | ||
|
||
# Checkout into master branch | ||
git checkout master | ||
|
||
# Updated local master branch with remote copy | ||
git pull origin master | ||
|
||
# Merged release branch into master branch | ||
git merge release/$VERSION | ||
|
||
# Tagged the release point by creating a new tag | ||
git tag -a $VERSION -m "Create release tag $VERSION" | ||
|
||
# Pushed master branch to remote repository | ||
git push origin master | ||
|
||
# Pushed the tags to remote repository | ||
git push origin --tags | ||
|
||
# Checkout into develop branch | ||
git checkout dev | ||
|
||
# Merged release branch into develop branch | ||
git merge release/$VERSION | ||
|
||
# Pushed develop branch to remote repository | ||
git push origin dev | ||
|
||
# Removed release branch from the local repository | ||
git branch -D release/$VERSION | ||
|
||
# Removed release branch from the remote repository | ||
git push origin :release/$VERSION | ||
``` |