Skip to content

Commit

Permalink
Small updates to github_releases_import.py (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdarwin authored Jan 8, 2024
1 parent b4693ac commit 0430f74
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__pycache__/
14 changes: 11 additions & 3 deletions github_releases_import.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright Sam Darwin 2021
# Distributed under the Boost Software License, Version 1.0.
Expand Down Expand Up @@ -30,7 +30,8 @@

# Config

boost_versions=[ "1.63.0", "1.64.0", "1.65.0", "1.65.1", "1.66.0", "1.67.0", "1.68.0", "1.69.0", "1.70.0", "1.71.0", "1.72.0", "1.73.0", "1.74.0", "1.75.0" ]
boost_versions=[ "1.63.0", "1.64.0", "1.65.0", "1.65.1", "1.66.0", "1.67.0", "1.68.0", "1.69.0", "1.70.0", "1.71.0", "1.72.0", "1.73.0", "1.74.0",
"1.75.0", "1.76.0", "1.77.0", "1.78.0", "1.79.0", "1.80.0", "1.81.0", "1.82.0", "1.83.0", "1.84.0" ]

# Or for testing:
# boost_versions=[ "1.74.0", "1.75.0" ]
Expand All @@ -57,7 +58,10 @@
utils.check_call('git', 'config', 'credential.helper', '%s'%(credentialhelperscript))

# Create a release, if one is not present
list_of_releases=subprocess.check_output(['gh', 'release', 'list'])
list_of_releases=subprocess.check_output(['gh', 'release', 'list'], text=True)

print("Previous releases list_of_releases:")
print(list_of_releases)

for version in boost_versions:
github_release_name="boost-" + version
Expand All @@ -73,6 +77,10 @@
'%s'%(github_release_title),
'-n',
'%s'%(github_release_notes))
else:
print("Release %s already exists" % github_release_name)

print("Uploading all files for %s" % github_release_name)

for subfolder in ["source", "binaries"]:
file_location=github_releases_local_archives + "/release/" + version + "/" + subfolder + "/*"
Expand Down

0 comments on commit 0430f74

Please sign in to comment.