Skip to content

Commit c066717

Browse files
author
xmik
committed
fix github release
1 parent c81c33e commit c066717

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.circleci/config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ workflows:
3131
filters:
3232
branches:
3333
only: master
34+
- homebrew_tap:
35+
requires:
36+
- release
37+
filters:
38+
branches:
39+
only: master
3440

3541
jobs:
3642
build_unit:
@@ -124,6 +130,12 @@ jobs:
124130
command: /bin/bash -c "./tasks release"
125131
- run:
126132
command: /bin/bash -c "./tasks release_gh"
133+
homebrew_tap:
134+
executor: platform
135+
steps:
136+
- setup
137+
- attach_workspace:
138+
at: ~/repo
127139
- run:
128140
command: /bin/bash -c "./tasks homebrew_tap"
129141

tasks

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -Ee
33

4-
RELEASER_VERSION="2.1.0"
4+
RELEASER_VERSION="2.1.3"
55
RELEASER_FILE="ops/releaser-${RELEASER_VERSION}"
66

77
mkdir -p ops
@@ -126,26 +126,28 @@ const DojoVersion = \"${next_version}\"
126126
echo "Releasing version ${VERSION}"
127127
GH_USER=kudulab
128128

129+
echo "Creating a GitHub release"
129130
$GHRELEASE_BIN release \
130131
--user $GH_USER \
131132
--repo dojo \
132133
--tag $VERSION \
133134
--name $VERSION \
134135
--description "$(./tasks generate_release_notes ${VERSION})"
135-
136+
echo "Uploading assets (1/2)"
136137
$GHRELEASE_BIN upload \
137138
--user $GH_USER \
138139
--repo dojo \
139140
--tag $VERSION \
140141
--name "dojo_linux_amd64" \
141142
--file bin/dojo_linux_amd64
142-
143+
echo "Uploading assets (2/2)"
143144
$GHRELEASE_BIN upload \
144145
--user $GH_USER \
145146
--repo dojo \
146147
--tag $VERSION \
147148
--name "dojo_darwin_amd64" \
148149
--file bin/dojo_darwin_amd64
150+
echo "Success"
149151
;;
150152
homebrew_tap)
151153
if [ ! -f bin/dojo_darwin_amd64 ]; then echo "dojo_darwin_amd64 binary does not exist"; exit 1; fi

0 commit comments

Comments
 (0)