Browse Source

Updating release scripts for doctl

Updates release scripts with new repo and upload locations.
bryanl 2 years ago
parent
commit
044bcb11c0
4 changed files with 6 additions and 6 deletions
  1. 1
    1
      scripts/build.sh
  2. 2
    2
      scripts/release.sh
  3. 1
    1
      scripts/stage.sh
  4. 2
    2
      scripts/upload.sh

+ 1
- 1
scripts/build.sh View File

@@ -2,4 +2,4 @@
2 2
 
3 3
 set -eo pipefail
4 4
 
5
-go build -ldflags "-X github.com/digitalocean/doctl/Build=`git rev-parse --short HEAD`" github.com/digitalocean/doctlcmd/doctl
5
+go build -ldflags "-X github.com/digitalocean/doctl/Build=`git rev-parse --short HEAD`" github.com/digitalocean/doctl/cmd/doctl

+ 2
- 2
scripts/release.sh View File

@@ -7,7 +7,7 @@ if [[ -z "$tag" ]]; then
7 7
 fi
8 8
 
9 9
 github-release release \
10
-  --user bryanl \
11
-  --repo doit \
10
+  --user digitalocean \
11
+  --repo doctl \
12 12
   --name "$tag" \
13 13
   --pre-release --tag "$tag"

+ 1
- 1
scripts/stage.sh View File

@@ -17,7 +17,7 @@ if [[ -n "$label" ]]; then
17 17
   ver="${ver}-${label}"
18 18
 fi
19 19
 
20
-RELEASE_PACKAGE=github.com/digitalocean/doctlcmd/doctl
20
+RELEASE_PACKAGE=github.com/digitalocean/doctl/cmd/doctl
21 21
 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
22 22
 OUTPUT_DIR="${DIR}/../builds/${ver}"
23 23
 STAGE_DIR=$OUTPUT_DIR/stage

+ 2
- 2
scripts/upload.sh View File

@@ -16,8 +16,8 @@ for r in $(ls ${OUTPUT_DIR}/doctl-${ver}-*); do
16 16
 	name=$(basename $r)
17 17
 	echo "uploading $name"
18 18
 	github-release upload \
19
-		--user bryanl \
20
-		--repo doit \
19
+		--user digitalocean \
20
+		--repo doctl \
21 21
 		--tag v${ver} \
22 22
 		--name $name \
23 23
 		--file $r