Skip to content

Commit

Permalink
Yml with txt (#17)
Browse files Browse the repository at this point in the history
* added for loop that should print out names of all yml files after unzip

* added for loop that should print out names of all yml files after unzip

* added for loop which adds .txt to unzipped yml files

* added txt to upload file

---------

Co-authored-by: Leo Cheng <leocheng@Leos-MacBook-Pro.local>
  • Loading branch information
StaticYolt and Leo Cheng authored Jul 2, 2024
1 parent 97c9273 commit f8fd64e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/upload-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Upload artifacts to Zenodo

on:
push:
workflow_dispatch:
# pull_request:

jobs:
Expand Down
1 change: 1 addition & 0 deletions download-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ archive_name="${envname}.zip"
curl -L -H "Authorization: token ${GHA_TOKEN}" "https://api.github.com/repos/nsls2-conda-envs/${repo_name}/actions/artifacts/${artifact_id}/zip" > ${archive_name}
unzip -v ${archive_name} # contents info
unzip ${archive_name}
for f in *.yml; do mv $f $f.txt; done
# mv -v Dockerfile Dockerfile-${envname}
rm -fv ${archive_name}
6 changes: 3 additions & 3 deletions upload-artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,19 +300,19 @@ def update_deposition_with_files(conceptrecid=None, files=None, token=None):
# Python 3.10 (tiled)
f"{version}-py310-tiled-md5sum.txt": "r",
f"{version}-py310-tiled-sha256sum.txt": "r",
f"{version}-py310-tiled.yml": "r",
f"{version}-py310-tiled.yml.txt": "r",
f"{version}-py310-tiled.tar.gz": "rb",

# Python 3.11 (tiled)
f"{version}-py311-tiled-md5sum.txt": "r",
f"{version}-py311-tiled-sha256sum.txt": "r",
f"{version}-py311-tiled.yml": "r",
f"{version}-py311-tiled.yml.txt": "r",
f"{version}-py311-tiled.tar.gz": "rb",

# Python 3.12 (tiled)
f"{version}-py312-tiled-md5sum.txt": "r",
f"{version}-py312-tiled-sha256sum.txt": "r",
f"{version}-py312-tiled.yml": "r",
f"{version}-py312-tiled.yml.txt": "r",
f"{version}-py312-tiled.tar.gz": "rb",
},
)
Expand Down

0 comments on commit f8fd64e

Please sign in to comment.