8000 Merge pull request #2678 from adafruit/5.0.x · gregdavill/circuitpython@e98991f · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e98991f

Browse files
authored
Merge pull request adafruit#2678 from adafruit/5.0.x
Merge in 5.0.x changes
2 parents 6468ca0 + ba0c14f commit e98991f

File tree

3 files changed

+16
-48
lines changed

3 files changed

+16
-48
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,3 @@ jobs:
273273
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
274274
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
275275
if: github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
276-
- name: Install upload deps
277-
run: |
278-
pip install uritemplate
279-
- name: Upload to Release
280-
run: "[ -z \"$ADABOT_GITHUB_ACCESS_TOKEN\" ] || python3 -u upload_release_files.py"
281-
working-directory: tools
282-
env:
283-
UPLOAD_URL: ${{ github.event.release.upload_url }}
284-
ADABOT_GITHUB_ACCESS_TOKEN: ${{ secrets.BLINKA_GITHUB_ACCESS_TOKEN }}
285-
if: github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested')

tools/build_board_info.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
HEX_UF2 = ('hex', 'uf2')
2222
SPK = ('spk',)
2323

24+
# Example:
25+
# https://downloads.circuitpython.org/bin/trinket_m0/en_US/adafruit-circuitpython-trinket_m0-en_US-5.0.0-rc.0.uf2
26+
DOWNLOAD_BASE_URL = "https://downloads.circuitpython.org/bin"
27+
2428
# Default extensions
2529
extension_by_port = {
2630
"nrf": UF2,
@@ -33,8 +37,10 @@
3337
# Per board overrides
3438
extension_by_board = {
3539
# samd
36-
"arduino_mkr1300": BIN,
37-
"arduino_zero": BIN,
40+
"arduino_mkr1300": BIN_UF2,
41+
"arduino_mkrzero": BIN_UF2,
42+
"arduino_nano_33_iot": BIN_UF2,
43+
"arduino_zero": BIN_UF2,
3844
"feather_m0_adalogger": BIN_UF2,
3945
"feather_m0_basic": BIN_UF2,
4046
"feather_m0_rfm69": BIN_UF2,
@@ -275,7 +281,14 @@ def generate_download_info():
275281
files = []
276282
new_version["files"][language] = files
277283
for extension in board_info["extensions"]:
278-
files.append("https://github.com/adafruit/circuitpython/releases/download/{tag}/adafruit-circuitpython-{alias}-{language}-{tag}.{extension}".format(tag=new_tag, alias=alias, language=language, extension=extension))
284+
files.append(
285+
"{base_url}/{alias}/{language}/adafruit-circuitpython-{alias}-{language}-{tag}.{extension}"
286+
.format(
287+
base_url=DOWNLOAD_BASE_URL,
288+
tag=new_tag,
289+
alias=alias,
290+
language=language,
291+
extension=extension))
279292
current_info[alias]["downloads"] = alias_info["download_count"]
280293
current_info[alias]["versions"].append(new_version)
281294

tools/upload_release_files.py

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0