Skip to content

Commit

Permalink
Add release script
Browse files Browse the repository at this point in the history
First step to automate release procedure.
  • Loading branch information
Fabrizio Cucci authored and fabriziocucci committed May 8, 2020
1 parent dbc11fc commit a7a4deb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
11 changes: 2 additions & 9 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
- Update version at:
- `testslide/version`
- Commit & push the tag:
- `git checkout master`
- `git add testslide/version`
- `git commit -m "v$VERSION"`
- `git tag $VERSION`
- `git push`
- `git push master --tags`
- Create a new release tag by running:
- `./release.sh $new_version`
- https://travis-ci.com/facebookincubator/TestSlide/
- Check if master build is OK.
- https://readthedocs.org/projects/testslide/
Expand Down
17 changes: 17 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
set -euxo pipefail

USAGE="No release version specified. Please try again like this: $0 <release_version>"

release_version=${1?$USAGE}

git checkout master
git pull

echo $release_version > testslide/version
git add testslide/version
git commit -m "v$release_version"
git push

git tag $release_version
git push origin $release_version

0 comments on commit a7a4deb

Please sign in to comment.