Skip to content

Zip and Publish Subfolders #15

Zip and Publish Subfolders

Zip and Publish Subfolders #15

name: Zip and Publish Subfolders
on:
release:
types: [published]
jobs:
zip-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Create zip files for each subfolder
run: |
for dir in $(find . -mindepth 1 -maxdepth 1 -type d); do
zip -r "${dir##*/}.zip" "$dir"
done
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ runner.os }}-subfolders
path: |
*.zip