create action for releases #1
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 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 | |