diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eeea09b5..989966e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,7 +93,7 @@ jobs: chmod a+x builder ./builder build -p ${{ env.PACKAGE_NAME }} - name: configure AWS credentials (MQTT5) - uses: aws-actions/configure-aws-credentials@v2 + uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: ${{ env.CI_MQTT5_ROLE }} aws-region: ${{ env.AWS_DEFAULT_REGION }} @@ -129,7 +129,7 @@ jobs: chmod a+x builder ./builder build -p ${{ env.PACKAGE_NAME }} - name: configure AWS credentials (MQTT5) - uses: aws-actions/configure-aws-credentials@v2 + uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: ${{ env.CI_MQTT5_ROLE }} aws-region: ${{ env.AWS_DEFAULT_REGION }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ff3e36d0..5d79edd1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,7 +68,7 @@ jobs: force: true - name: configure AWS credentials (Release) - uses: aws-actions/configure-aws-credentials@v2 + uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: arn:aws:iam::180635532705:role/CI_V2_RELEASE_S3_ROLE aws-region: us-east-1 diff --git a/codebuild/cd/publish-to-prod-pypi.yml b/codebuild/cd/publish-to-prod-pypi.yml index 859c0cbc..3ec776f5 100644 --- a/codebuild/cd/publish-to-prod-pypi.yml +++ b/codebuild/cd/publish-to-prod-pypi.yml @@ -11,7 +11,7 @@ phases: - sudo apt-get install python3 python3-pip -y - export PATH=$PATH:$HOME/.local/bin - python3 -m pip install --user --upgrade pip - - python3 -m pip install --user --upgrade twine setuptools wheel awscli PyOpenSSL six + - python3 -m pip install --user --upgrade twine awscli build setuptools - echo "\nBuild version data:" - echo "\nPython Version:"; python3 --version pre_build: @@ -24,7 +24,7 @@ phases: build: commands: - echo Build started on `date` - - python3 setup.py sdist bdist_wheel + - python3 -m build - python3 -m twine upload -r pypi dist/* post_build: commands: diff --git a/codebuild/cd/publish-to-test-pypi.yml b/codebuild/cd/publish-to-test-pypi.yml index 9450aa80..75e6ea97 100644 --- a/codebuild/cd/publish-to-test-pypi.yml +++ b/codebuild/cd/publish-to-test-pypi.yml @@ -11,7 +11,7 @@ phases: - sudo apt-get install python3 python3-pip -y - export PATH=$PATH:$HOME/.local/bin - python3 -m pip install --user --upgrade pip - - python3 -m pip install --user --upgrade twine setuptools wheel awscli PyOpenSSL six + - python3 -m pip install --user --upgrade twine awscli build setuptools - echo "\nBuild version data:" - echo "\nPython Version:"; python3 --version pre_build: @@ -24,7 +24,7 @@ phases: build: commands: - echo Build started on `date` - - python3 setup.py sdist bdist_wheel + - python3 -m build - python3 -m twine upload -r testpypi dist/* post_build: commands: