aws-cloudformation / cloudformation-cli-python-plugin

The CloudFormation Provider Development Toolkit Python Plugin allows you to autogenerate Python code based on an input schema.
Apache License 2.0
108 stars 47 forks source link

Add travis release for both plugin and support lib. #132

Closed johnttompkins closed 3 years ago

johnttompkins commented 3 years ago

Issue #, if available:

Description of changes: This change add a travis deployment job for both the plugin and support library. Basically, depending on the tag naming, we will release the plugin or lib. If a tag contains "plugin", the before_deploy script will not change the directory, and travis will release what is in the root directory. If a tag contains "lib", the directory changes to "src" and the support library is released. (Thanks to @lukewrites for detailing this solution for multiple pypi packages in one repo in their repo here: https://github.com/lukewrites/silly-package)

Tested on my local fork with the test pypi repository.

This also contains a version bump for both plugin and lib packages so that once merged, we can tag this commit and release it.

Example jobs:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.