33
33
submodules : false
34
34
show-progress : false
35
35
fetch-depth : 1
36
+ persist-credentials : false
36
37
- name : Set up python
37
38
uses : actions/setup-python@v5
38
39
with :
@@ -66,15 +67,19 @@ jobs:
66
67
EXCLUDE_COMMIT : ${{ github.event.pull_request.head.sha }}
67
68
- name : Set head sha (pull)
68
69
if : github.event_name == 'pull_request'
69
- run : echo "HEAD_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
70
+ env :
71
+ HEAD_SHA : ${{ github.event.pull_request.head.sha }}
72
+ run : echo "HEAD_SHA=$HEAD_SHA" >> $GITHUB_ENV
70
73
- name : Set base sha (pull)
71
74
if : github.event_name == 'pull_request'
72
75
run : git cat-file -e $SHA && echo "BASE_SHA=$SHA" >> $GITHUB_ENV || true
73
76
env :
74
77
SHA : ${{ steps.get-last-commit-with-checks.outputs.commit_sha || github.event.pull_request.base.sha }}
75
78
- name : Set head sha (push)
76
79
if : github.event_name == 'push'
77
- run : echo "HEAD_SHA=${{ github.event.after }}" >> $GITHUB_ENV
80
+ env :
81
+ SHA : ${{ github.event.after }}
82
+ run : echo "HEAD_SHA=$SHA" >> $GITHUB_ENV
78
83
- name : Set base sha (push)
79
84
if : github.event_name == 'push'
80
85
run : git cat-file -e $SHA && echo "BASE_SHA=$SHA" >> $GITHUB_ENV || true
@@ -114,6 +119,7 @@ jobs:
114
119
submodules : false
115
120
show-progress : false
116
121
fetch-depth : 1
122
+ persist-credentials : false
117
123
- name : Set up python
118
124
uses : actions/setup-python@v5
119
125
with :
@@ -149,9 +155,9 @@ jobs:
149
155
(github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'adafruit') ||
150
156
(github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
151
157
run : |
152
- [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross-macos-universal s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-${{ env. CP_VERSION }} -universal --no-progress --region us-east-1
153
- [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/build-arm64/mpy-cross-arm64 s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-${{ env. CP_VERSION }} -arm64 --no-progress --region us-east-1
154
- [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/build/mpy-cross s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-${{ env. CP_VERSION }} -x64 --no-progress --region us-east-1
158
+ [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross-macos-universal s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-"${ CP_VERSION}" -universal --no-progress --region us-east-1
159
+ [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/build-arm64/mpy-cross-arm64 s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-"${ CP_VERSION}" -arm64 --no-progress --region us-east-1
160
+ [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/build/mpy-cross s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-"${ CP_VERSION}" -x64 --no-progress --region us-east-1
155
161
env :
156
162
AWS_PAGER : ' '
157
163
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
@@ -170,6 +176,7 @@ jobs:
170
176
submodules : false
171
177
show-progress : false
172
178
fetch-depth : 1
179
+ persist-credentials : false
173
180
- name : Set up python
174
181
uses : actions/setup-python@v5
175
182
with :
@@ -188,7 +195,7 @@ jobs:
188
195
name : stubs
189
196
path : circuitpython-stubs/dist/*
190
197
- name : Test Documentation Build (HTML)
191
- run : sphinx-build -E -W -b html -D version=${{ env. CP_VERSION }} -D release=${{ env. CP_VERSION }} . _build/html
198
+ run : sphinx-build -E -W -b html -D version="$ CP_VERSION" -D release="$ CP_VERSION" . _build/html
192
199
- uses : actions/upload-artifact@v4
193
200
with :
194
201
name : docs-html
@@ -271,6 +278,7 @@ jobs:
271
278
submodules : false
272
279
show-progress : false
273
280
fetch-depth : 1
281
+ persist-credentials : false
274
282
- name : Set up submodules
275
283
uses : ./.github/actions/deps/submodules
276
284
- name : build mpy-cross
0 commit comments