build:
working_directory: ~/repo
docker:
- - image: cimg/go:1.19.1
+ - image: cimg/go:1.22.1
steps:
- checkout
# - restore_cache:
deploy:
docker:
- - image: cimg/go:1.19.1
+ - 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 install github.com/tcnksm/ghr@latest
- run: go install github.com/stevenmatthewt/semantics@latest
- run:
name: cross compile
name: create release
command: |
tag=$(/home/circleci/go/bin/semantics --output-tag)
- # temp troubleshooting >:(
- find / -name ghr
if [ "$tag" ]; then
/home/circleci/go/bin/ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace $tag dist/
else