From bcfa2234b37f80ad2e7d3571c3a447363de26568 Mon Sep 17 00:00:00 2001 From: Kimberly Meechan Date: Fri, 8 Sep 2023 10:51:35 +0100 Subject: [PATCH] create action for releases --- .github/workflows/zip-release.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/zip-release.yml diff --git a/.github/workflows/zip-release.yml b/.github/workflows/zip-release.yml new file mode 100644 index 0000000..e14bc5b --- /dev/null +++ b/.github/workflows/zip-release.yml @@ -0,0 +1,27 @@ +name: Zip release excluding docs + +on: + # Only trigger on push to main with a version tag + push: + branches: + - main + tags: + - "v*.*.*" + +jobs: + Zip-release: + runs-on: ubuntu-latest + + steps: + + - name: Check out repository code + uses: actions/checkout@v3 + + - name: Only zip python files + run: zip image-matcher.zip *.py + + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: image-matcher.zip + \ No newline at end of file