version: 0.2 # this image assumes base Codebuild Ubuntu image phases: install: commands: - sudo apt-get update -y - sudo apt-get install python3 python3-pip -y - python3 -m pip install --user --upgrade pip - python3 -m pip install --user --upgrade twine boto3 pre_build: commands: - export CC=gcc build: commands: - echo Build started on `date` - mkdir dist - cp -rv $CODEBUILD_SRC_DIR_aws_crt_python_windows/dist/* dist/ - cp -rv $CODEBUILD_SRC_DIR_aws_crt_python_manylinux1/dist/* dist/ - cp -rv $CODEBUILD_SRC_DIR_aws_crt_python_musllinux1_1/dist/* dist/ - cp -rv $CODEBUILD_SRC_DIR_aws_crt_python_osx/* dist/ - ls -la dist/ - cd aws-crt-python - python3 continuous-delivery/pull-pypirc.py prod - python3 -m twine upload --repository pypi --verbose ../dist/* post_build: commands: - echo Build completed on `date`