Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
Alek Petuskey authored and Alek Petuskey committed Jun 20, 2024
1 parent ae5b3c6 commit d4365c0
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/create-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: Zip subfolders
run: |
for dir in */ ; do
zip -r "${dir%/}.zip" "$dir"
done
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Zipped Subfolders
path: |
*.zip
run: |
for file in *.zip; do
name=$(basename "$file" .zip)
echo "Uploading $file as $name"
gh run upload-artifact --name "$name" "$file"
done

0 comments on commit d4365c0

Please sign in to comment.