File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ # This should be applied after updating the CHANGELOG.md
3+
4+ # A better class of script
5+ set -o errexit # Exit on most errors (see the manual)
6+ set -o errtrace # Make sure any error trap is inherited
7+ set -o nounset # Disallow expansion of unset variables
8+ set -o pipefail # Use last non-zero exit code in a pipeline
9+ # set -o xtrace # Trace the execution of the script (debug)
10+
11+
12+ # #################################################
13+ tag_version=$1 && \
14+ git tag ${tag_version} && \
15+ git push --tags;
16+
17+ # This is specific to my local set up
18+ source .env .
19+ # GITHUB_TOKEN="3122133122133211233211233211233211322313123"
20+ # local_repo="$Users/.../docker-stack-this"
21+ user=" pascalandy"
22+ git_repo=" docker-stack-this"
23+
24+ # Requires https://github.com/aktau/github-release
25+ $GOPATH /bin/github-release release \
26+ --user ${user} \
27+ --repo ${git_repo} \
28+ --tag ${tag_version} \
29+ --name ${tag_version} \
30+ --description " Refer to [CHANGELOG.md](https://github.com/pascalandy/docker-stack-this/blob/master/CHANGELOG.md) for details about this release."
31+
32+ # Find the latest tag
33+ # tag_version="$(git tag --sort=-creatordate | head -n1)" && \
34+ # echo ${tag_version} && \
You can’t perform that action at this time.
0 commit comments