Skip to content

Commit

Permalink
Merge pull request #4449 from esl/publish-packages-gh
Browse files Browse the repository at this point in the history
Publish packages on GitHub
  • Loading branch information
NelsonVides authored Dec 30, 2024
2 parents bf50db9 + e09501a commit 193f25c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .circleci/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,7 @@ jobs:
- run:
name: Publish package
command: |
if [ -n "${CIRCLE_TAG}" ]; then tools/circle-install-packages.sh gh; fi
./tools/pkg/publish.sh
filters:
Expand Down
3 changes: 3 additions & 0 deletions tools/pkg/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ aws configure set default.region $AWS_DEFAULT_REGION

if [ -n "$CIRCLE_TAG" ]; then
aws s3 cp "${PACKAGE_NAME}" "s3://mim-packages/tags/${CIRCLE_TAG}/${PACKAGE_NAME}" --acl public-read --quiet

echo "$GH_RELEASE_TOKEN" | gh auth login --with-token
gh release upload "${CIRCLE_TAG}" "${PACKAGE_NAME}" --repo "${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}"
else
aws s3 cp "${PACKAGE_NAME}" "s3://mim-packages/branches/${CIRCLE_BRANCH}/${prefix}/${PACKAGE_NAME}" --acl public-read --quiet
fi

0 comments on commit 193f25c

Please sign in to comment.