Skip to content

Commit

Permalink
Merge pull request #16 from digitalocean/update-release-scripts
Browse files Browse the repository at this point in the history
Update release scripts for doctl
  • Loading branch information
bryanl committed Mar 25, 2016
2 parents dd76f67 + 044bcb1 commit d8e2e0b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

set -eo pipefail

go build -ldflags "-X github.com/digitalocean/doctl/Build=`git rev-parse --short HEAD`" github.com/digitalocean/doctlcmd/doctl
go build -ldflags "-X github.com/digitalocean/doctl/Build=`git rev-parse --short HEAD`" github.com/digitalocean/doctl/cmd/doctl
4 changes: 2 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [[ -z "$tag" ]]; then
fi

github-release release \
--user bryanl \
--repo doit \
--user digitalocean \
--repo doctl \
--name "$tag" \
--pre-release --tag "$tag"
2 changes: 1 addition & 1 deletion scripts/stage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if [[ -n "$label" ]]; then
ver="${ver}-${label}"
fi

RELEASE_PACKAGE=github.com/digitalocean/doctlcmd/doctl
RELEASE_PACKAGE=github.com/digitalocean/doctl/cmd/doctl
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
OUTPUT_DIR="${DIR}/../builds/${ver}"
STAGE_DIR=$OUTPUT_DIR/stage
Expand Down
4 changes: 2 additions & 2 deletions scripts/upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ for r in $(ls ${OUTPUT_DIR}/doctl-${ver}-*); do
name=$(basename $r)
echo "uploading $name"
github-release upload \
--user bryanl \
--repo doit \
--user digitalocean \
--repo doctl \
--tag v${ver} \
--name $name \
--file $r
Expand Down

0 comments on commit d8e2e0b

Please sign in to comment.