Skip to content

Commit

Permalink
fix github release
Browse files Browse the repository at this point in the history
  • Loading branch information
xmik committed Feb 20, 2022
1 parent c81c33e commit c066717
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ workflows:
filters:
branches:
only: master
- homebrew_tap:
requires:
- release
filters:
branches:
only: master

jobs:
build_unit:
Expand Down Expand Up @@ -124,6 +130,12 @@ jobs:
command: /bin/bash -c "./tasks release"
- run:
command: /bin/bash -c "./tasks release_gh"
homebrew_tap:
executor: platform
steps:
- setup
- attach_workspace:
at: ~/repo
- run:
command: /bin/bash -c "./tasks homebrew_tap"

Expand Down
8 changes: 5 additions & 3 deletions tasks
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -Ee

RELEASER_VERSION="2.1.0"
RELEASER_VERSION="2.1.3"
RELEASER_FILE="ops/releaser-${RELEASER_VERSION}"

mkdir -p ops
Expand Down Expand Up @@ -126,26 +126,28 @@ const DojoVersion = \"${next_version}\"
echo "Releasing version ${VERSION}"
GH_USER=kudulab

echo "Creating a GitHub release"
$GHRELEASE_BIN release \
--user $GH_USER \
--repo dojo \
--tag $VERSION \
--name $VERSION \
--description "$(./tasks generate_release_notes ${VERSION})"

echo "Uploading assets (1/2)"
$GHRELEASE_BIN upload \
--user $GH_USER \
--repo dojo \
--tag $VERSION \
--name "dojo_linux_amd64" \
--file bin/dojo_linux_amd64

echo "Uploading assets (2/2)"
$GHRELEASE_BIN upload \
--user $GH_USER \
--repo dojo \
--tag $VERSION \
--name "dojo_darwin_amd64" \
--file bin/dojo_darwin_amd64
echo "Success"
;;
homebrew_tap)
if [ ! -f bin/dojo_darwin_amd64 ]; then echo "dojo_darwin_amd64 binary does not exist"; exit 1; fi
Expand Down

0 comments on commit c066717

Please sign in to comment.