@@ -18,7 +18,8 @@ docker run --user $(id -u ${USER}):$(id -g ${USER}) -v ${PWD}/goroot:/go/ --rm g
18
18
BASE=$PWD
19
19
# # setup our package properties by distro
20
20
PKG_NAME=" sigsci-module-golang"
21
- DEST_BUCKET=" s3://package-build-artifacts/${PKG_NAME} /${GITHUB_RUN_NUMBER} "
21
+ DEST_BUCKET=" package-build-artifacts"
22
+ DEST_KEY=" ${PKG_NAME} /${GITHUB_RUN_NUMBER} "
22
23
VERSION=$( cat ./VERSION)
23
24
24
25
@@ -31,7 +32,7 @@ aws s3api put-object \
31
32
--cache-control=" max-age=300" \
32
33
--content-type=" application/octet-stream" \
33
34
--body " ./artifacts/${PKG_NAME} .tar.gz" \
34
- --key " ${DEST_BUCKET } /${PKG_NAME} _${VERSION} .tar.gz" \
35
+ --key " ${DEST_KEY } /${PKG_NAME} _${VERSION} .tar.gz" \
35
36
--grant-full-control id=" ${SIGSCI_PROD_CANONICAL_ID} "
36
37
37
38
# Metadata files
@@ -40,15 +41,15 @@ aws s3api put-object \
40
41
--cache-control=" max-age=300" \
41
42
--content-type=" text/plain; charset=UTF-8" \
42
43
--body " VERSION" \
43
- --key " ${DEST_BUCKET } /VERSION" \
44
+ --key " ${DEST_KEY } /VERSION" \
44
45
--grant-full-control id=" ${SIGSCI_PROD_CANONICAL_ID} "
45
46
46
47
aws s3api put-object \
47
48
--bucket " ${DEST_BUCKET} " \
48
49
--cache-control=" max-age=300" \
49
50
--content-type=" text/plain; charset=UTF-8" \
50
51
--body " CHANGELOG.md" \
51
- --key " ${DEST_BUCKET } /CHANGELOG.md" \
52
+ --key " ${DEST_KEY } /CHANGELOG.md" \
52
53
--grant-full-control id=" ${SIGSCI_PROD_CANONICAL_ID} "
53
54
54
55
0 commit comments