Skip to content

Commit

Permalink
compress and upload subfolder content
Browse files Browse the repository at this point in the history
  • Loading branch information
iprak committed Oct 26, 2024
1 parent 751a64e commit ff77c74
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Release
on:
workflow_dispatch:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -21,7 +21,7 @@ jobs:
sed -i "s/\"version\": \".*\"/\"version\": \"${{steps.semantic_release_info.outputs.version}}\"/g" custom_components/sensi/manifest.json
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
git add -A
git commit -m "chore: bumping version to ${{steps.semantic_release_info.outputs.version}}"
git tag ${{ steps.semantic_release_info.outputs.git_tag }}
Expand All @@ -43,4 +43,14 @@ jobs:
body: ${{ steps.semantic_release_info.outputs.notes }}
draft: false
prerelease: false


- name: "ZIP the integration directory"
shell: "bash"
run: |
cd "${{ github.workspace }}/custom_components/sensi"
zip sensi.zip -r ./
- name: "Upload the ZIP file to the release"
uses: "softprops/action-gh-release@v2.0.8"
with:
files: ${{ github.workspace }}/custom_components/sensi/sensi.zip

0 comments on commit ff77c74

Please sign in to comment.