somia somia - 6 months ago 30
Android Question

CircleCI publish the artifacts to a cloud server?

I need to publish the build artifacts(.apk files) to a cloud server. Could someone please help me to do the configuration.

Answer

Finally I got the answer from CircleCI forum. https://discuss.circleci.com/t/publish-the-artifacts-to-a-cloud-server/4010/3

ghr https://github.com/tcnksm/ghr is a simple tool to create GitHub Release and upload artifacts by only one command. ghr uploads multiple artifacts in parallel.

- ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME v1.0.$CIRCLE_BUILD_NUM $CIRCLE_ARTIFACTS/ || true

Please note to mention CIRCLE_ARTIFACTS in the environment variables.

Comments