Skip to content

Commit

Permalink
fix: beta release zip file
Browse files Browse the repository at this point in the history
  • Loading branch information
geertmeersman committed Nov 27, 2024
1 parent 286b8be commit 194a311
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/bump_version_and_prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,24 @@ jobs:
name: Prerelease ${{ steps.next-version.outputs.NEW_VERSION }}
footer: "${{ steps.next-version.outputs.CHANGELOG }}"

- name: 📦 Create zip file
run: |
cd custom_components/${{ github.event.repository.name }}
zip -r "${{ github.event.repository.name }}.zip" .
mv "${{ github.event.repository.name }}.zip" ../..
- name: 📎 Upload zip file to release
uses: actions/upload-artifact@v4
with:
name: release-artifact
path: "${{ github.event.repository.name }}.zip"

- name: 📝 Update release with zip file
run: |
gh release upload ${{ steps.release_published.outputs.tag_name }} "${{ github.event.repository.name }}.zip"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Discord notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_BETA }}
Expand Down

0 comments on commit 194a311

Please sign in to comment.