build:
working_directory: ~/repo
docker:
- - image: cimg/go:1.18.3
+ - image: cimg/go:1.22.1
steps:
- checkout
# - restore_cache:
deploy:
docker:
- - image: cimg/go:1.16.6
+ - image: cimg/go:1.22.1
# working_directory: /go/src/github.com/jhalter/mobius
steps:
- checkout
- run: go get -u github.com/mitchellh/gox
- - run: go get -u github.com/tcnksm/ghr
- - run: go get -u github.com/stevenmatthewt/semantics
+ - run: go install github.com/tcnksm/ghr@latest
+ - run: go install github.com/stevenmatthewt/semantics@latest
- run:
name: cross compile
command: |
- run:
name: create release
command: |
- tag=$(semantics --output-tag)
+ tag=$(/home/circleci/go/bin/semantics --output-tag)
if [ "$tag" ]; then
- ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace $tag dist/
+ /home/circleci/go/bin/ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace $tag dist/
else
echo "The commit message(s) did not indicate a major/minor/patch version."
fi