name: Release on: push: tags: - "v*" permissions: contents: write jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Create relaytv.zip for HACS run: | cd custom_components/relaytv zip -r ../../relaytv.zip . -x "__pycache__/*" "*/__pycache__/*" "*.pyc" - name: Create GitHub Release uses: softprops/action-gh-release@v2 with: body_path: RELEASE_NOTES.md files: relaytv.zip