File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 24
24
(github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
25
25
run : >-
26
26
[ -z "$AWS_ACCESS_KEY_ID" ] ||
27
- aws s3 cp ${{ inputs.source }} s3://adafruit-circuit-python/bin/${{ inputs.destination }} --recursive --no-progress --region us-east-1
27
+ aws s3 cp ${{ inputs.source }} s3://adafruit-circuit-python/bin/${{ inputs.destination }}
28
+ ${{ endsWith(inputs.source, '/') && '--recursive' || '' }} --no-progress --region us-east-1
28
29
env :
29
30
AWS_PAGER : ' '
30
31
AWS_ACCESS_KEY_ID : ${{ inputs.AWS_ACCESS_KEY_ID }}
Original file line number Diff line number Diff line change @@ -200,16 +200,11 @@ jobs:
200
200
with :
201
201
name : docs
202
202
path : _build/latex
203
- - name : Zip stubs
204
- if : >-
205
- (github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'adafruit') ||
206
- (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
207
- run : zip -9r circuitpython-stubs.zip circuitpython-stubs
208
203
- name : Upload to S3
209
204
uses : ./.github/actions/upload_aws
210
205
with :
211
206
source : circuitpython-stubs/dist/*.tar.gz
212
- destination : stubs/circuitpython-stubs-${{ env.CP_VERSION }}.zip
207
+ destination : stubs/circuitpython-stubs-${{ env.CP_VERSION }}.tar.gz
213
208
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
214
209
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
215
210
- name : Upload stubs to PyPi
You can’t perform that action at this time.
0 commit comments