Skip to content

Instantly share code, notes, and snippets.

@J535D165
Last active October 21, 2019 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save J535D165/0147c9f54aa937773215e7c5aaf966ae to your computer and use it in GitHub Desktop.
Save J535D165/0147c9f54aa937773215e7c5aaf966ae to your computer and use it in GitHub Desktop.
Build a release of the latest software version
echo "Give a new version number (without v prefix)"
read version_tag
# create git tag
git tag -a "v${version_tag}" -m "Version ${version_tag}"
git push origin --tags
# reader pdf from markdown README.
pandoc README.md -o README.pdf
# copy all files to the releases folder
mkdir -p releases
rsync -av --progress . releases/release_${version_tag} --exclude releases --exclude .git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment