From 156c184a8a0ff9f36443ffa2b17a06b981c2ed5d Mon Sep 17 00:00:00 2001 From: edavidaja Date: Thu, 29 May 2025 22:49:00 -0400 Subject: [PATCH 1/2] remove publishing to s3 --- .github/workflows/main.yml | 13 ------------- Makefile | 17 ----------------- 2 files changed, 30 deletions(-) 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..ab92faee 100644 --- a/Makefile +++ b/Makefile @@ -135,23 +135,6 @@ dist: @echo "::set-output name=whl::$(BDIST_WHEEL)" @echo "::set-output name=whl_basename::$(notdir $(BDIST_WHEEL))" -.PHONY: dist-install -dist-install: dist - 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 \ From c7eaf372d2763dc371849f97118e377ab81e3905 Mon Sep 17 00:00:00 2001 From: edavidaja Date: Wed, 4 Jun 2025 13:14:34 -0400 Subject: [PATCH 2/2] restore install target --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index ab92faee..13050839 100644 --- a/Makefile +++ b/Makefile @@ -135,6 +135,10 @@ dist: @echo "::set-output name=whl::$(BDIST_WHEEL)" @echo "::set-output name=whl_basename::$(notdir $(BDIST_WHEEL))" +.PHONY: install +install: + pip install $(BDIST_WHEEL) + .PHONY: sync-latest-docs-to-s3 sync-latest-docs-to-s3: aws s3 sync --acl bucket-owner-full-control \