File tree Expand file tree Collapse file tree 2 files changed +2
-28
lines changed Expand file tree Collapse file tree 2 files changed +2
-28
lines changed Original file line number Diff line number Diff line change @@ -104,19 +104,6 @@ jobs:
104104 files : |
105105 dist/*.whl
106106 token : ${{ secrets.GITHUB_TOKEN }}
107- - uses : aws-actions/configure-aws-credentials@v4
108- id : creds
109- with :
110- role-to-assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
111- aws-region : ${{ secrets.AWS_REGION }}
112- - if : github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.package_name == 'rsconnect_python'
113- run : make sync-latest-to-s3
114- env :
115- BDIST_WHEEL : ${{ steps.create_dist.outputs.whl }}
116- - if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && matrix.package_name == 'rsconnect_python'
117- run : make sync-to-s3
118- env :
119- BDIST_WHEEL : ${{ steps.create_dist.outputs.whl }}
120107 - if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
121108 uses : pypa/gh-action-pypi-publish@release/v1
122109
Original file line number Diff line number Diff line change @@ -135,23 +135,10 @@ dist:
135135 @echo " ::set-output name=whl::$( BDIST_WHEEL) "
136136 @echo " ::set-output name=whl_basename::$( notdir $( BDIST_WHEEL) ) "
137137
138- .PHONY : dist- install
139- dist- install : dist
138+ .PHONY : install
139+ install :
140140 pip install $(BDIST_WHEEL )
141141
142- .PHONY : sync-to-s3
143- sync-to-s3 :
144- aws s3 cp --acl bucket-owner-full-control \
145- $(BDIST_WHEEL ) \
146- $(S3_PREFIX ) /$(VERSION ) /$(notdir $(BDIST_WHEEL ) )
147-
148- .PHONY : sync-latest-to-s3
149- sync-latest-to-s3 :
150- aws s3 cp --acl bucket-owner-full-control \
151- --cache-control max-age=0 \
152- $(BDIST_WHEEL ) \
153- $(S3_PREFIX ) /latest/rsconnect_python-latest-py2.py3-none-any.whl
154-
155142.PHONY : sync-latest-docs-to-s3
156143sync-latest-docs-to-s3 :
157144 aws s3 sync --acl bucket-owner-full-control \
You can’t perform that action at this time.
0 commit comments