Skip to content

Commit

Permalink
fix: Update to use files folder for resource-files
Browse files Browse the repository at this point in the history
  • Loading branch information
jmetz committed Feb 8, 2024
1 parent e5919ed commit a397c58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/unzip_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def unzip_from_url(resource_path, package_url):
for filename in zipobj.namelist():
# file_object = io.BytesIO(zipobj)
file_object = zipobj.open(filename)
path = f"{resource_path}/{version}/{filename}"
path = f"{resource_path}/{version}/files/{filename}"

client.put(
path,
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/upload_model_to_zenodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def main():
if args.version is None:
version = client.get_unpublished_version(args.resource_path)

s3_path = Path(args.resource_path, version)
s3_path = f"{args.resource_path}/{version}/files"

# List the files at the model URL
file_urls = client.get_file_urls(path=s3_path)
Expand Down

0 comments on commit a397c58

Please sign in to comment.