diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index b9b2d1f..0b4fc6f 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -46,3 +46,12 @@ jobs: - name: Codecov uses: codecov/codecov-action@v2.1.0 if: matrix.python-version == '3.9' && matrix.os == 'ubuntu-latest' + - name: Zip examples + run: | + sh .github/zip_examples.sh + - name: Upload example zips + uses: actions/upload-artifact@v3 + with: + name: upload-example-zips + path: | + examples_zipped/*.zip diff --git a/.github/zip_examples.sh b/.github/zip_examples.sh new file mode 100644 index 0000000..01973ce --- /dev/null +++ b/.github/zip_examples.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +mkdir -p examples_zipped +cd examples + +for f in $(find "." -mindepth 1 -maxdepth 1 -type d ); do + zip -r "../examples_zipped/$f" "$f" +done \ No newline at end of file