Skip to content

Commit

Permalink
Fix CircleCI publish step (#13)
Browse files Browse the repository at this point in the history
The publish step does not find out where the keeparelease binary is.
  • Loading branch information
rgreinho authored Feb 3, 2020
1 parent 1c43817 commit 5b80777
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ executors:
repo_cache_key: &repo_cache_key
go-mod-{{ checksum "go.sum" }}.0

install_keeparelease: &install_keeparelease
name: Install keeparelease
command: |
export BIN_DIR=/home/circleci/.local/bin/
mkdir -p "${BIN_DIR}"
export KEEPARELEASE_VERSION=1.2.0
export KEEPARELEASE_BIN="keeparelease-${KEEPARELEASE_VERSION}-linux-amd64"
curl -sLO "https://github.com/rgreinho/keeparelease/releases/download/${KEEPARELEASE_VERSION}/${KEEPARELEASE_BIN}"
chmod a+x "${KEEPARELEASE_BIN}"
mv "${KEEPARELEASE_BIN}" "${BIN_DIR}/keeparelease"
jobs:
prepare:
Expand Down Expand Up @@ -57,6 +67,8 @@ jobs:
- checkout
- restore_cache:
key: *repo_cache_key
- run:
<<: *install_keeparelease
- run:
name: Build the artifacts for all the selected architectures and published a new GitHub release
command: |
Expand Down

0 comments on commit 5b80777

Please sign in to comment.