Fixed minor issue with identifying the correct amoung of flies in the… #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Zip Examples Folders | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
zip-folders: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install zip utility | |
run: sudo apt-get install -y zip | |
- name: Zip each subfolder | |
run: | | |
for lab in $(find . -maxdepth 1 -type d ! -name '.*' ! -name '.' | sed 's|./||'); do | |
for example in $(find $lab -maxdepth 1 -type d ! -name '.*' ! -name $lab); do | |
zip -r "${lab}-${example##*/}.zip" "$example" | |
done | |
done | |
- name: Create GitHub Release with zipped folders | |
uses: softprops/action-gh-release@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
generate_release_notes: true | |
draft: true | |
prerelease: false | |
files: '*.zip' |