Skip to content

Merge branch 'main' of https://github.com/fchampalimaud/cf.labs #19

Merge branch 'main' of https://github.com/fchampalimaud/cf.labs

Merge branch 'main' of https://github.com/fchampalimaud/cf.labs #19

Workflow file for this run

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'