Skip to content

Commit

Permalink
Upload examples as zips in GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dunnkers committed Jul 28, 2022
1 parent 3e49923 commit 6a2db4f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 8 additions & 0 deletions .github/zip_examples.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6a2db4f

Please sign in to comment.