diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2f3a4573..208e81de 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -104,19 +104,6 @@ jobs: files: | dist/*.whl token: ${{ secrets.GITHUB_TOKEN }} - - uses: aws-actions/configure-aws-credentials@v4 - id: creds - with: - role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws-region: ${{ secrets.AWS_REGION }} - - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.package_name == 'rsconnect_python' - run: make sync-latest-to-s3 - env: - BDIST_WHEEL: ${{ steps.create_dist.outputs.whl }} - - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && matrix.package_name == 'rsconnect_python' - run: make sync-to-s3 - env: - BDIST_WHEEL: ${{ steps.create_dist.outputs.whl }} - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/Makefile b/Makefile index e84cf748..13050839 100644 --- a/Makefile +++ b/Makefile @@ -135,23 +135,10 @@ dist: @echo "::set-output name=whl::$(BDIST_WHEEL)" @echo "::set-output name=whl_basename::$(notdir $(BDIST_WHEEL))" -.PHONY: dist-install -dist-install: dist +.PHONY: install +install: pip install $(BDIST_WHEEL) -.PHONY: sync-to-s3 -sync-to-s3: - aws s3 cp --acl bucket-owner-full-control \ - $(BDIST_WHEEL) \ - $(S3_PREFIX)/$(VERSION)/$(notdir $(BDIST_WHEEL)) - -.PHONY: sync-latest-to-s3 -sync-latest-to-s3: - aws s3 cp --acl bucket-owner-full-control \ - --cache-control max-age=0 \ - $(BDIST_WHEEL) \ - $(S3_PREFIX)/latest/rsconnect_python-latest-py2.py3-none-any.whl - .PHONY: sync-latest-docs-to-s3 sync-latest-docs-to-s3: aws s3 sync --acl bucket-owner-full-control \