give required permissions #5
Workflow file for this run
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 | |
permissions: | |
contents: write | |
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 | |