Skip to content

Commit 193f25c

Browse files
authored
Merge pull request #4449 from esl/publish-packages-gh
Publish packages on GitHub
2 parents bf50db9 + e09501a commit 193f25c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.circleci/template.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ jobs:
715715
- run:
716716
name: Publish package
717717
command: |
718+
if [ -n "${CIRCLE_TAG}" ]; then tools/circle-install-packages.sh gh; fi
718719
./tools/pkg/publish.sh
719720
720721
filters:

tools/pkg/publish.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ aws configure set default.region $AWS_DEFAULT_REGION
2020

2121
if [ -n "$CIRCLE_TAG" ]; then
2222
aws s3 cp "${PACKAGE_NAME}" "s3://mim-packages/tags/${CIRCLE_TAG}/${PACKAGE_NAME}" --acl public-read --quiet
23+
24+
echo "$GH_RELEASE_TOKEN" | gh auth login --with-token
25+
gh release upload "${CIRCLE_TAG}" "${PACKAGE_NAME}" --repo "${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}"
2326
else
2427
aws s3 cp "${PACKAGE_NAME}" "s3://mim-packages/branches/${CIRCLE_BRANCH}/${prefix}/${PACKAGE_NAME}" --acl public-read --quiet
2528
fi

0 commit comments

Comments
 (0)